Interface CalculateRouteCallback
Package com.here.sdk.routing
Interface CalculateRouteCallback
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CalculateRouteCallbackA function which is called by the RoutingEngine after route calculation has completed. It is always called on the main thread. The first argument is the error in case of a failure. It is
nullfor an operation that succeeds. The second argument is the calculated routes. It isnullin case of an error.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonRouteCalculated(RoutingError routingError, java.util.List<Route> routeList)A function which is called by the RoutingEngine after route calculation has completed.
-
-
-
Method Detail
-
onRouteCalculated
void onRouteCalculated(@Nullable RoutingError routingError, @Nullable java.util.List<Route> routeList)A function which is called by the RoutingEngine after route calculation has completed. It is always called on the main thread. The first argument is the error in case of a failure. It is
nullfor an operation that succeeds. The second argument is the calculated routes. It isnullin case of an error.- Parameters:
routingError-The error in case of a failure. It is
nullfor an operation that succeeds.routeList-The calculated routes. It is
nullin case of an error.
-
-