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

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onAttached
Link copied to clipboard
open fun onAttached(mapboxCarMapSurface: MapboxCarMapSurface)
Called when a MapboxCarMapSurface has been loaded.
onDetached
Link copied to clipboard
open fun onDetached(mapboxCarMapSurface: MapboxCarMapSurface)
Called when a MapboxCarMapSurface has been detached from this observer.
onFling
Link copied to clipboard
open fun onFling(mapboxCarMapSurface: MapboxCarMapSurface, velocityX: Float, velocityY: Float): Boolean
Allows you to implement or observe the map fling gesture handler.
onScale
Link copied to clipboard
open fun onScale(mapboxCarMapSurface: MapboxCarMapSurface, anchor: ScreenCoordinate, fromZoom: Double, toZoom: Double): Boolean
Allows you to implement or observe the map scale gesture handler.
onScroll
Link copied to clipboard
open fun onScroll(mapboxCarMapSurface: MapboxCarMapSurface, distanceX: Float, distanceY: Float): Boolean
Allows you to implement or observe the map scroll gesture handler.
onVisibleAreaChanged
Link copied to clipboard
open fun onVisibleAreaChanged(visibleArea: Rect, edgeInsets: EdgeInsets)
Called when the car library updates the visible regions for the surface.
toString
Link copied to clipboard
open fun toString(): String