Navigation Camera
Updates the map camera while navigating.
This class listens to the progress of MapboxNavigation and moves the MapboxMap camera based on the location updates.
Constructors
NavigationCamera
Link copied to clipboard
Creates an instance of NavigationCamera.
NavigationCamera
Link copied to clipboard
@TestOnly()
Content copied to clipboard
Types
TrackingMode
Link copied to clipboard
Functions
addOnTrackingModeChangedListener
Link copied to clipboard
open fun addOnTrackingModeChangedListener(listener: OnTrackingModeChangedListener)
Content copied to clipboard
addOnTrackingModeTransitionListener
Link copied to clipboard
open fun addOnTrackingModeTransitionListener(listener: OnTrackingModeTransitionListener)
Content copied to clipboard
addProgressChangeListener
Link copied to clipboard
findTrackingModeFor
Link copied to clipboard
getCameraTrackingMode
Link copied to clipboard
isTrackingEnabled
Link copied to clipboard
removeOnTrackingModeChangedListener
Link copied to clipboard
open fun removeOnTrackingModeChangedListener(listener: OnTrackingModeChangedListener)
Content copied to clipboard
removeOnTrackingModeTransitionListener
Link copied to clipboard
open fun removeOnTrackingModeTransitionListener(listener: OnTrackingModeTransitionListener)
Content copied to clipboard
removeProgressChangeListener
Link copied to clipboard
open fun removeProgressChangeListener()
Content copied to clipboard
resetCameraPositionWith
Link copied to clipboard
showRouteOverview
Link copied to clipboard
update
Link copied to clipboard
Animate the camera to a new location defined within CameraUpdate passed to the NavigationCameraUpdate using a transition animation that evokes powered flight.
Animate the camera to a new location defined within CameraUpdate passed to the NavigationCameraUpdate using a transition animation that evokes powered flight.The animation will last a specified amount of time given in milliseconds.
open fun update(update: NavigationCameraUpdate, durationMs: Int, callback: MapboxMap.CancelableCallback)
Content copied to clipboard
Animate the camera to a new location defined within CameraUpdate passed to the NavigationCameraUpdate using a transition animation that evokes powered flight.
updateCameraTrackingMode
Link copied to clipboard
updateIsResetting
Link copied to clipboard
updateTransitionListenersCancelled
Link copied to clipboard
updateTransitionListenersFinished
Link copied to clipboard
Properties
NAVIGATION_TRACKING_MODE_GPS
Link copied to clipboard
NAVIGATION_TRACKING_MODE_NONE
Link copied to clipboard
NAVIGATION_TRACKING_MODE_NORTH
Link copied to clipboard