sendMessage

@IviExperimental(reasons = [])
inline fun <T> sendMessage(topic: String, action: String, payload: T): String?

Sends an AASB Message to the Alexa Auto Client Service (AACS) with the ID returned.

The AASB message specification is available on the Alexa Auto AASB specification documentation page.

Return

ID of the sent message if send succeeded, or null otherwise.

Parameters

topic

The topic of the message as described in the AASB documentation.

action

The action value of the reply as described in the AASB documentation.

payload

The value of type T which represents an AACS message payload as described in the AASB documentation.

Throws

if the payload does not comply to the format specification.


@IviExperimental(reasons = [])
fun sendMessage(topic: String, action: String, payload: String? = null): String?

Sends an AASB Message to the Alexa Auto Client Service (AACS) with the ID returned.

The AASB message specification is available on the Alexa Auto AASB specification documentation page.

Return

ID of the sent message if send succeeded, or null otherwise.

Parameters

topic

The topic of the message as described in the AASB documentation.

action

The action value of the reply as described in the AASB documentation.

payload

The message payload to send to AACS as described in the AASB documentation.