startArrival

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

Request NavigationView to enter Arrival state.

NavigationViewListener.onArrival will be called once NavigationView enters Arrival state.

Fails with an error when either Destination or Routes has not been set.


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

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

NavigationViewListener.onDestinationChanged will be called once new destination is set and NavigationViewListener.onArrival will be called once NavigationView enters Arrival state.

Fails with an error when routes is an empty list.