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

RouteCallback

@PublicPreview("2021.06") interface RouteCallback

Callback 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 successfully obtained.