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 a preview routes and request 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.