public static interface RouteManager.Listener
RouteManager
events.\Modifier and Type | Method and Description |
---|---|
void |
onCalculateRouteFinished(RouteManager.Error errorCode,
java.util.List<RouteResult> routeResults)
A callback indicating that a route calculation operation has finished.
|
void |
onProgress(int percentage)
A callback indicating the progress level of the current route calculation operation, a
percentage value within the range of [0..100].
|
void onProgress(int percentage)
percentage
- Progress completion percentagevoid onCalculateRouteFinished(RouteManager.Error errorCode, java.util.List<RouteResult> routeResults)
RouteManager.Error.VIOLATES_OPTIONS
, one or more
RouteResult
in the returned list contains a list of violated RouteOptions
. For other Error
, the list size of RouteResult
will be 0.errorCode
- A Error
indicating the error code for the route calculation (could be
RouteManager.Error.NONE
)routeResults
- A List of RouteResult
RouteResult.getViolatedOptions()