RouteAddedCallback

interface RouteAddedCallback

Callback used in the NavigationController.addRouteToTrip function. Route addition is asynchronous and the callback methods will be called once the addition 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 onError(error: TripUpdateError)

Called when route addition cannot be performed.

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

Called when route is added successfully.