sendReplyMessage

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

Sends an AASB Reply Message to the Alexa Auto Client Service (AACS).

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

Parameters

replyToId

The ID of the message that this is a reply to.

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 sendReplyMessage(replyToId: String, topic: String, action: String, payload: String? = null)

Sends an AASB Reply Message to the Alexa Auto Client Service (AACS).

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

Parameters

replyToId

The ID of the message that this is a reply to.

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.