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 onBackPressed(): Boolean

Called when hardware back button has been pressed.

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

Called when the info panel behavior updates to collapsed.

Link copied to clipboard
open fun onInfoPanelDragging()

Called when the info panel behavior updates to dragging.

Link copied to clipboard
open fun onInfoPanelExpanded()

Called when the info panel behavior updates to expanded.

Link copied to clipboard
open fun onInfoPanelHidden()

Called when the info panel behavior updates to hidden.

Link copied to clipboard
open fun onInfoPanelSettling()

Called when the info panel behavior updates to settling.

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