RouteUpdatedCallback

interface RouteUpdatedCallback

Callback used in the update function. Route update is asynchronous and the callback methods will be called once the update 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: RouteUpdateError)

Called when route update finishes with an error.

Link copied to clipboard
abstract fun onRouteUpdated(route: Route, routeUpdateReason: RouteUpdateReason)

Called when route update finishes successfully.