MapboxCarMapObserver

interface MapboxCarMapObserver

Many downstream services will not work until the surface has been created and the map has loaded. This interface allows you to create custom Mapbox experiences for the car.

Functions

onAttached
Link copied to clipboard
open fun onAttached(@NonNull mapboxCarMapSurface: MapboxCarMapSurface)
Called when a MapboxCarMapSurface has been loaded.
onDetached
Link copied to clipboard
open fun onDetached(@NonNull mapboxCarMapSurface: MapboxCarMapSurface)
Called when a MapboxCarMapSurface has been detached from this observer.
onStableAreaChanged
Link copied to clipboard
open fun onStableAreaChanged(@NonNull stableArea: Rect, @NonNull edgeInsets: EdgeInsets)
Called when the car library updates the stable region for the surface.
onVisibleAreaChanged
Link copied to clipboard
open fun onVisibleAreaChanged(@NonNull visibleArea: Rect, @NonNull edgeInsets: EdgeInsets)
Called when the car library updates the visible regions for the surface.