PreviewCarRoutesProvider

class PreviewCarRoutesProvider(routes: List<NavigationRoute>) : CarRoutesProvider

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

Constructors

Link copied to clipboard
fun PreviewCarRoutesProvider(routes: List<NavigationRoute>)

Functions

Link copied to clipboard
fun updateRoutes(routes: List<NavigationRoute>)

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: StateFlow<List<NavigationRoute>>

Provides navigation routes for active guidance or route preview.