startRoutePreview

abstract fun startRoutePreview(): Expected<NavigationViewApiError, Unit>

Request NavigationView to enter route preview state.

NavigationViewListener.onRoutePreview will be called once NavigationView enters route preview state.

Fails with an error when either destination or preview routes has not been set.


abstract fun startRoutePreview(routes: List<NavigationRoute>): Expected<NavigationViewApiError, Unit>

Sets preview routes and request NavigationView to enter route preview state. Last DirectionsWaypoint location will be used as the destination.

NavigationViewListener.onDestinationChanged will be called once new destination is set and NavigationViewListener.onRoutePreview will be called once NavigationView enters route preview state.

Fails with an error when routes is an empty list.