onDetached

open override fun onDetached(mapboxNavigation: MapboxNavigation)

Called when the manager is detached from a MapboxNavigation instance.

Sets the navigation flow to null, which causes active collectLatest blocks to cancel and call provider.onDetached() via their finally blocks. Provider registrations are preserved so they re-attach on the next onAttached.

Parameters

mapboxNavigation

the MapboxNavigation instance