abstract fun onDetached(mapboxNavigation: MapboxNavigation)
Content copied to clipboard
Signals that the mapboxNavigation instance is being detached. Use this function to unregister mapboxNavigation observers that were registered in onAttached.
onDetached is called when onAttached was called at some time in the past and:
All LifecycleOwners that have been attached with MapboxNavigationApp.attach have moved to the Lifecycle.State.CREATED or Lifecycle.State.DESTROYED states.
The last LifecycleOwners is detached MapboxNavigationApp.detach.
This observer is unregistered with MapboxNavigationApp.unregisterObserver.
MapboxNavigationApp.disable is called.
instance that is being detached.