sdk-routing / com.tomtom.online.sdk.routing.route / RouteCallback

RouteCallback

@Beta(2020, 12) interface RouteCallback

Callback which is responsible to inform about a received RoutePlan or respective error.

Functions

onError

abstract fun onError(error: RoutingException): Unit

Called when an error occurs during the process of obtaining the RoutePlan.

onSuccess

abstract fun onSuccess(routePlan: RoutePlan): Unit

Called when a RoutePlan has been obtained successfully.