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
fun AacsSenderWrapper(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 = [])
fun sendMessage(jsonMessage: String, topic: String, action: String)

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

Link copied to clipboard
@IviExperimental(reasons = [])
fun sendRequestWithNoPayload(json: Json, messageId: String, topic: String, action: String)

Sends an AASB request to AACS that does not require a payload. A request is a message from the client to Alexa which is not a reply to a previously sent message from Alexa. A request may or may not have a reply.