Interface Router.Callback
-
- All Implemented Interfaces:
public interface Router.CallbackCallback for Router fetching
-
-
Method Summary
Modifier and Type Method Description abstract UnitonResponse(DirectionsResponse response)Non-empty list of DirectionsRoute abstract UnitonFailure(Throwable throwable)abstract UnitonCanceled()Called whenever a route request is canceled.
-
-
-
Method Detail
-
onResponse
abstract Unit onResponse(DirectionsResponse response)
Non-empty list of DirectionsRoute
-
onFailure
abstract Unit onFailure(Throwable throwable)
- Parameters:
throwable- Throwable safety error.
-
onCanceled
abstract Unit onCanceled()
Called whenever a route request is canceled.
-
-