MapboxCarNavigationManager

class MapboxCarNavigationManager : 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.

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.