Alexa Auto UX Restrictions¶
The following list describes the purposes of this library:
- It provides
CarUxRestrictionsModule
and controlsCarUxRestrictionsController
life cycle. CarUxRestrictionsModule
is responsible for broadcasting driving state changes as intents to other app components. Current usecases for this module include theAPL
module and thesetup
module.- It provides default implementation for
CarUxRestrictionsController
, which initializes AndroidCarUxRestrictionsManager
, registers and unregistersOnUxRestrictionsChangedListener
. To use the default implemetation, it requires Android car package exists on the device. OEM can also provide their own implementation for the car UX restrictions updates.
This app component requires Android API 29. To build this component with Alexa Auto App, add the -PenabledUXRestrictions
to your build command:
./gradlew assembleLocalRelease -PenabledUXRestrictions