MapboxCarNavigationManager

class MapboxCarNavigationManager(carContext: CarContext) : MapboxNavigationObserver

Register this observer using MapboxNavigationApp.registerObserver. As long as it is registered, the trip status of MapboxNavigation will be sent to the NavigationManager. This is needed to keep the vehicle cluster display updated.

Constructors

Link copied to clipboard
fun MapboxCarNavigationManager(carContext: CarContext)

Functions

Link copied to clipboard
open override fun onAttached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard
open override fun onDetached(mapboxNavigation: MapboxNavigation)

Properties

Link copied to clipboard
val autoDriveEnabledFlow: StateFlow<Boolean>

Observe the onAutoDriveEnabled callback state. This is false by default, and at any point can become true. The state does not go back to false.