CarNavigationCamera

class CarNavigationCamera : MapboxCarMapObserver

Integrates the Android Auto MapboxCarMapSurface with the NavigationCamera.

Constructors

CarNavigationCamera
Link copied to clipboard
fun CarNavigationCamera(mapboxNavigation: MapboxNavigation, initialCarCameraMode: CarCameraMode, alternativeCarCameraMode: CarCameraMode?, initialCameraOptions: CameraOptions? = CameraOptions.Builder() .zoom(DEFAULT_INITIAL_ZOOM) .build())

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
followingZoomUpdatesAllowed
Link copied to clipboard
fun followingZoomUpdatesAllowed(): Boolean
Indicates whether the following camera is configured to recalculate and update the zoom level.
hashCode
Link copied to clipboard
open fun hashCode(): Int
onAttached
Link copied to clipboard
open override fun onAttached(mapboxCarMapSurface: MapboxCarMapSurface)
onDetached
Link copied to clipboard
open override fun onDetached(mapboxCarMapSurface: MapboxCarMapSurface)
onVisibleAreaChanged
Link copied to clipboard
open override fun onVisibleAreaChanged(visibleArea: Rect, edgeInsets: EdgeInsets)
toString
Link copied to clipboard
open fun toString(): String
updateCameraMode
Link copied to clipboard
fun updateCameraMode(carCameraMode: CarCameraMode)
zoomInAction
Link copied to clipboard
fun zoomInAction()
Function dedicated to zoom in map action buttons.
zoomOutAction
Link copied to clipboard
fun zoomOutAction()
Function dedicated to zoom in map action buttons.
zoomUpdatesAllowed
Link copied to clipboard
fun zoomUpdatesAllowed(allowed: Boolean)
If true the camera may recalculate and update the zoom level.

Properties

gestureHandler
Link copied to clipboard
val gestureHandler: DefaultMapboxCarMapGestureHandler
nextCameraMode
Link copied to clipboard
val nextCameraMode: StateFlow<CarCameraMode?>