NavigationViewListener

abstract class NavigationViewListener

Interface definition for the NavigationView listener.

Constructors

Link copied to clipboard
fun NavigationViewListener()

Functions

Link copied to clipboard
open fun onActiveNavigation()

Called when NavigationView enters Active Navigation state.

Link copied to clipboard
open fun onArrival()

Called when NavigationView enters Arrival state.

Link copied to clipboard
open fun onAudioGuidanceStateChanged(muted: Boolean)

Called when Audio Guidance mute state has change.

Link copied to clipboard
open fun onCameraPaddingChanged(padding: EdgeInsets)

Called when NavigationCamera padding has changed. The padding is defined as a box relative to map size which the user location indicator and route geometry is fit into during camera following and overview states.

Link copied to clipboard
open fun onDestinationChanged(destination: Point?)

Called when destination has changed.

Link copied to clipboard
open fun onDestinationPreview()

Called when NavigationView enters Destination Preview state.

Link copied to clipboard
open fun onFollowingCameraMode()

Called when camera mode has changed to Following.

Link copied to clipboard
open fun onFreeDrive()

Called when NavigationView enters Free Drive state.

Link copied to clipboard
open fun onIdleCameraMode()

Called when camera mode has changed to Idle.

Link copied to clipboard
open fun onMapStyleChanged(style: Style)

Called when Map Style has changed. Invoked once the new style has been fully loaded, including the style specified sprite and sources.

Link copied to clipboard
open fun onOverviewCameraMode()

Called when camera mode has changed to Overview.

Link copied to clipboard
open fun onRouteFetchCanceled(routeOptions: RouteOptions, routerOrigin: RouterOrigin)

Called when route request using the Router was canceled.

Link copied to clipboard
open fun onRouteFetchFailed(reasons: List<RouterFailure>, routeOptions: RouteOptions)

Called when route request using the Router failed.

Link copied to clipboard
open fun onRouteFetching(requestId: Long)

Called when the route is being fetched using the Router.

Link copied to clipboard
open fun onRouteFetchSuccessful(routes: List<NavigationRoute>)

Called when route request using the Router was successful. The result contains a list of NavigationRoute. If there are no routes, then the list will be empty.

Link copied to clipboard
open fun onRoutePreview()

Called when NavigationView enters Route Preview state.