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.