startActiveGuidance

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

Request NavigationView to enter Active Navigation state.

NavigationViewListener.onActiveNavigation 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 startActiveGuidance(routes: List<NavigationRoute>): Expected<NavigationViewApiError, Unit>

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

NavigationViewListener.onDestinationChanged will be called once new destination is set and NavigationViewListener.onActiveNavigation will be called once NavigationView enters Active Navigation state.

Fails with an error when routes is an empty list.