AacsSenderWrapper

A class that is used to send Alexa Auto Services Bridge (AASB) messages to the Alexa Auto Client Service (AACS). A service implementing the AlexaHandlerService should use this class to send requests/replies to the AACS.

More information about the AACS is available on the Alexa Auto Client Service (AACS) documentation page.

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

Constructors

Link copied to clipboard
constructor(iviServiceHostContext: IviServiceHostContext)

Constructor, to use when creating an AacsSenderWrapper from an IVI service.

Functions

Link copied to clipboard
fun push(streamId: String, pushCallback: AACSSender.PushToStreamIdCallback)
Link copied to clipboard
Link copied to clipboard
fun sendIntent(intent: Intent)

Sends an Intent to the Alexa Auto Client Service (AACS).

Link copied to clipboard
@IviExperimental(reasons = [])
inline fun <T> sendMessage(topic: String, action: String, payload: T): String?
@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.

Link copied to clipboard
@IviExperimental(reasons = [])
inline fun <T> sendReplyMessage(replyToId: String, topic: String, action: String, payload: T)
@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).