CarLocationProvider

Automatically attaches and detaches from MapboxNavigationApp to provide map matched locations.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun lastLocation(): Location?

Immediately access the last location received.

Link copied to clipboard
open override fun onAttached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard
open override fun onDetached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard
open override fun registerLocationConsumer(locationConsumer: LocationConsumer)
Link copied to clipboard
open override fun unRegisterLocationConsumer(locationConsumer: LocationConsumer)
Link copied to clipboard
suspend fun validLocation(): Location

Wait until a non-null location is received. Improves results when the app is starting.