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

Link copied to clipboard
open fun onAttached(@NonNull mapboxCarMapSurface: MapboxCarMapSurface)
Called when a MapboxCarMapSurface has been loaded.
Link copied to clipboard
open fun onDetached(@NonNull mapboxCarMapSurface: MapboxCarMapSurface)
Called when a MapboxCarMapSurface has been detached from this observer.
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.
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.