CarNavigationCamera

class CarNavigationCamera : MapboxCarMapObserver

Integrates the Android Auto MapboxCarMapSurface with the NavigationCamera.

Constructors

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

Functions

Link copied to clipboard
fun followingZoomUpdatesAllowed(): Boolean

Indicates whether the following camera is configured to recalculate and update the zoom level.

Link copied to clipboard
open override fun onAttached(mapboxCarMapSurface: MapboxCarMapSurface)
Link copied to clipboard
open override fun onDetached(mapboxCarMapSurface: MapboxCarMapSurface)
Link copied to clipboard
open override fun onVisibleAreaChanged(visibleArea: Rect, edgeInsets: EdgeInsets)
Link copied to clipboard
fun updateCameraMode(carCameraMode: CarCameraMode)
Link copied to clipboard
fun zoomInAction()

Function dedicated to zoom in map action buttons.

Link copied to clipboard
fun zoomOutAction()

Function dedicated to zoom in map action buttons.

Link copied to clipboard
fun zoomUpdatesAllowed(allowed: Boolean)

If true the camera may recalculate and update the zoom level. If false the feature is disabled.

Properties

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