routePreview
Builds the route preview list used as the content of a androidx.car.app.navigation.model.MapWithContentTemplate by the Mapbox navigation screen. Every row shows the duration, summary and distance of a route and has a navigate action. An empty RoutesPreview.originalRoutesList shows a loading list.
Parameters
the routes to choose from. Rows follow RoutesPreview.originalRoutesList and the row at RoutesPreview.primaryRouteIndex is selected.
the title of the list header.
the title of the navigate action.
formats a route distance in meters.
invoked with the com.mapbox.navigation.base.route.NavigationRoute.id of the row the driver selected.
invoked with the com.mapbox.navigation.base.route.NavigationRoute.id of the row whose navigate action the driver tapped.
optional icon of the navigate action.