CarRouteLine

class CarRouteLine(val mainCarContext: MainCarContext, carRoutesProvider: CarRoutesProvider = NavigationCarRoutesProvider()) : MapboxCarMapObserver

This class is to simplify the interaction with MapboxRouteLineApi, MapboxRouteArrowView, and RouteProgressObserver use cases that the app needs in the car.

Anything for rendering the car's route line, is handled here at this point.

Constructors

Link copied to clipboard
fun CarRouteLine(mainCarContext: MainCarContext, carRoutesProvider: CarRoutesProvider = NavigationCarRoutesProvider())

Functions

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 fun onVisibleAreaChanged(visibleArea: Rect, edgeInsets: EdgeInsets)

Properties

Link copied to clipboard
val mainCarContext: MainCarContext