CarSurfaceLayer

open class CarSurfaceLayer : MapboxCarMapObserver

Simplify the classes that need to extend the MapboxCarMapObserver

This class is meant to have children so you don't have to forward the calls and store surface state.

Constructors

Link copied to clipboard
fun CarSurfaceLayer()

Functions

Link copied to clipboard
open fun children(): List<MapboxCarMapObserver>

This allows you to create children listeners. Children are notified after the parent.

Link copied to clipboard
open override fun onAttached(mapboxCarMapSurface: MapboxCarMapSurface)
Link copied to clipboard
open override fun onDetached(mapboxCarMapSurface: MapboxCarMapSurface)
Link copied to clipboard
open override fun onVisibleAreaChanged(visibleArea: Rect, edgeInsets: EdgeInsets)
Link copied to clipboard
fun surfaceDimensions(): Pair<Int, Int>?

Properties

Link copied to clipboard
val edgeInsets: EdgeInsets? = null
Link copied to clipboard
val visibleArea: Rect? = null

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard