MapboxCarContext
This is the entry point for Mapbox Navigation in Android Auto. Create this object and then you have access to services and options for customization.
The lifecycle must come from a Session.getLifecycle or Screen.getLifecycle at this time.
Create this object and register the screen factories (for example with prepareScreens) before the lifecycle is Lifecycle.State.CREATED, for example as a property of your Session. Screen events from a previous Session are replayed to the MapboxScreenManager when the lifecycle is created; events for screens without a registered factory at that moment are ignored.
Parameters
used to access the CarContext.
controls the Mapbox car map surface.
Properties
Gives access to the CarContext. Throws an IllegalStateException when accessed before the lifecycle is Lifecycle.State.CREATED
Gives access to the Lifecycle that owns the CarContext.
MapboxCarMap controls the Mapbox car map surface
Access to persistent storage. Throws an IllegalStateException when accessed before the lifecycle is Lifecycle.State.CREATED.
Integrates Mapbox with the car libraries NavigationManager. Gives access to the auto drive state. Throws an IllegalStateException when accessed before the lifecycle is Lifecycle.State.CREATED.
Control the screens shown with the MapboxScreenManager.
Options available for customizing Mapbox Android Auto Navigation.
Control and access the route preview.