CarArrivalTrigger

class CarArrivalTrigger : MapboxNavigationObserver

When attached this will observe when the final destination is reached and change the car app state to the MapboxScreen.ARRIVAL. This is not a MapboxCarMapObserver because arrival can happen even when the map is not showing.

Constructors

Link copied to clipboard
fun CarArrivalTrigger()

Functions

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

Manually trigger the arrival.