MapboxCarMapObserver
interface MapboxCarMapObserver
Content copied to clipboard
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
Called when a MapboxCarMapSurface has been loaded.
onDetached
Link copied to clipboard
Called when a MapboxCarMapSurface has been detached from this observer.
onStableAreaChanged
Link copied to clipboard
open fun onStableAreaChanged(@NonNull stableArea: Rect, @NonNull edgeInsets: EdgeInsets)
Content copied to clipboard
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)
Content copied to clipboard
Called when the car library updates the visible regions for the surface.