ActiveRouteChangedCallback

interface ActiveRouteChangedCallback

Callback used in the NavigationController.setActiveRoute function. Active route change is asynchronous and the callback methods will be called once the change is finished, whether it succeeds or not.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
abstract fun onActiveRouteChanged(route: Route)

Called when active route in Trip is successfully changed.

Link copied to clipboard
abstract fun onError(error: TripUpdateError)

Called when active route change cannot be performed.