abstract suspend fun onMessageReceived(message: AacsMessage): Boolean

Called when an AASB message from the AACS has been received. The implementation should process the message and handle it, based on what the application wants to do.

If this method returns true, the message will be considered handled and will not be forwarded to any other handler. Otherwise, the message will be forwarded to the next handler in order of priority.


true if the message has been handled, false otherwise.



An AacsMessage from Alexa. The formats of these messages are specified in the Alexa Auto AASB specification.

See also

for details on how the same message can be forwarded to multiple handlers.