sdk-routing / com.tomtom.online.sdk.routing.matrix / MatrixRoutesCallback

MatrixRoutesCallback

@Beta(2020, 12) interface MatrixRoutesCallback

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

Functions

onError

abstract fun onError(error: RoutingException): Unit

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

onSuccess

abstract fun onSuccess(routesPlan: MatrixRoutesPlan): Unit

Called when a MatrixRoutesPlan has been obtained successfully.