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

MatrixRoutesCallback

@PublicPreview("2021.06") interface MatrixRoutesCallback

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