MapboxCarContext

class MapboxCarContext(val lifecycle: Lifecycle, val mapboxCarMap: MapboxCarMap)

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.

Parameters

lifecycle

used to access the CarContext.

mapboxCarMap

controls the Mapbox car map surface.

Constructors

Link copied to clipboard
constructor(lifecycle: Lifecycle, mapboxCarMap: MapboxCarMap)

Properties

Link copied to clipboard

Gives access to the CarContext. Throws an IllegalStateException when accessed before the lifecycle is Lifecycle.State.CREATED

Link copied to clipboard

Gives access to the Lifecycle that owns the CarContext.

Link copied to clipboard
val mapboxCarMap: MapboxCarMap

MapboxCarMap controls the Mapbox car map surface

Link copied to clipboard

Access to persistent storage. Throws an IllegalStateException when accessed before the lifecycle is Lifecycle.State.CREATED.

Link copied to clipboard

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.

Link copied to clipboard

Control the screens shown with the MapboxScreenManager.

Link copied to clipboard

Options available for customizing Mapbox Android Auto Navigation.

Link copied to clipboard

Control and access the route preview.

Functions

Link copied to clipboard

Allows you to define values used by the Mapbox Android Auto Navigation SDK.

Link copied to clipboard

This is a predefined application that is designed to collect feedback from drivers.