NavigationListener

interface NavigationListener

A listener that can be implemented and added to NavigationViewOptions to hook into navigation related events occurring in NavigationView.

Functions

onCancelNavigation
Link copied to clipboard
abstract fun onCancelNavigation()
Will be triggered when the user clickson the cancel "X" icon while navigating.
onNavigationFinished
Link copied to clipboard
abstract fun onNavigationFinished()
Will be triggered when MapboxNavigation has finished and the service is completely shut down.
onNavigationRunning
Link copied to clipboard
abstract fun onNavigationRunning()
Will be triggered when MapboxNavigation has been initialized and the user is navigating the given route.