RoadLabelSurfaceLayer
class RoadLabelSurfaceLayer(val carContext: CarContext, val mapboxNavigation: MapboxNavigation) : CarSurfaceLayer
Content copied to clipboard
This will show the current road name at the bottom center of the screen.
In your Screen, create an instance of this class and enable by registering it to the MapboxCarMap.registerObserver. Disable by removing the listener with MapboxCarMap.unregisterObserver.
Constructors
Link copied to clipboard
fun RoadLabelSurfaceLayer(carContext: CarContext, mapboxNavigation: MapboxNavigation)
Content copied to clipboard
Functions
Link copied to clipboard
This allows you to create children listeners. Children are notified after the parent.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onVisibleAreaChanged(visibleArea: Rect, edgeInsets: EdgeInsets)
Content copied to clipboard
Link copied to clipboard