AplEventHandler

@IviExperimental(reasons = [])
class AplEventHandler(layout: APLLayout, context: Context, sendMessage: (VpaMessage) -> Unit)

This class provides the functionality to handle AACS Alexa Presentation Language (APL) events.

Note: The application is required to initialize the APL runtime by passing the Android context to initialize prior to the inflation of APLLayout components.

Parameters

layout

The layout of the screen on which the APL document is rendered. See Amazon Documentation for details.

context

The Context that the layout is associated with.

sendMessage

The callback function used to send APL events back to AACS.

Constructors

Link copied to clipboard
fun AplEventHandler(layout: APLLayout, context: Context, sendMessage: (VpaMessage) -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Processes instructions provided by the APL Directive in the message.

Link copied to clipboard
fun setDisallowVideo(disallowVideo: Boolean)

Sets the Disallow Video APL Runtime Property.

Link copied to clipboard
fun setDrivingState(drivingState: AplDrivingState)

Sets the Driving State APL Runtime Property.

Link copied to clipboard
fun setTheme(theme: String)

Sets the Theme APL Runtime Property.