CarAppLocation

interface CarAppLocation : MapboxNavigationObserver

Provides a way to access the car or app navigation location. Access through MapboxCarApp.carAppLocationService.

Functions

Link copied to clipboard
abstract fun onAttached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard
abstract fun onDetached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard
abstract suspend fun validLocation(): Location?

Helper function that will suspend until a location is found, or until the coroutine scope is no longer active.

Properties

Link copied to clipboard
abstract val navigationLocationProvider: NavigationLocationProvider

location provider that is attached to MapboxNavigation. This provider can be used as a relay for the latest map coordinates.