PreviewCarRoutesProvider2

class PreviewCarRoutesProvider2 : CarRoutesProvider

Gives the CarRoutePreviewScreen the ability to control the selected route rendered by the CarRouteLineRenderer and CarNavigationCamera.

Constructors

Link copied to clipboard
fun PreviewCarRoutesProvider2()

Functions

Link copied to clipboard
fun updateSelectedRoute(index: Int)

When the route selection changes, update the route selection. This will relay the route selection to other components.

Properties

Link copied to clipboard
open override val navigationRoutes: Flow<List<NavigationRoute>>

Provides navigation routes for active guidance or route preview.

Link copied to clipboard
val routesPreview: Flow<RoutesPreview?>

Provides navigation routes and selected route index for route preview.