Mapbox Car Map Observer
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
on Attached
Link copied to clipboard
Called when a MapboxCarMapSurface has been loaded.
on Detached
Link copied to clipboard
Called when a MapboxCarMapSurface has been detached from this observer.
on Stable Area Changed
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.
on Visible Area Changed
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.