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 changed.

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 in 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 onInfoPanelCollapsed()

Called when the info panel behavior updates to BottomSheetBehavior.STATE_COLLAPSED.

Link copied to clipboard
open fun onInfoPanelDragging()

Called when the info panel behavior updates to BottomSheetBehavior.STATE_DRAGGING.

Link copied to clipboard
open fun onInfoPanelExpanded()

Called when the info panel behavior updates to BottomSheetBehavior.STATE_EXPANDED.

Link copied to clipboard
open fun onInfoPanelHidden()

Called when the info panel behavior updates to BottomSheetBehavior.STATE_HIDDEN.

Link copied to clipboard
open fun onInfoPanelSettling()

Called when the info panel behavior updates to BottomSheetBehavior.STATE_SETTLING.

Link copied to clipboard
open fun onInfoPanelSlide(slideOffset: Float)

Called when the info panel is being dragged.

Link copied to clipboard
open fun onManeuverCollapsed()

Called when maneuver view has been collapsed.

Link copied to clipboard
open fun onManeuverExpanded()

Called when maneuver view has been expanded.

Link copied to clipboard
open fun onMapClicked(point: Point)

Called when a map was clicked, but the event was not handled by NavigationView.

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.

Link copied to clipboard
open fun onSpeedInfoClicked(speedInfo: SpeedInfoValue?)

Called when MapboxSpeedInfoView was clicked