public static class AlertsManager.RouteAlertCallback extends Object
Constructor and Description |
---|
RouteAlertCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onDangerousSlowdownAlertResult(List<DangerousSlowdown> dangerousSlowdowns)
Call for when there are ongoing dangerous slowdowns on the route.
|
void |
onDangerousSlowdownWithDistanceResult(SimpleArrayMap<DangerousSlowdown,Double> dangerousSlowdownsToDistanceMap)
Call for when the route tracker has finished processing the route and mapped all the dangerous slowdowns to a route point.
|
void |
onIncidentAlertResult(List<Incident> incidents)
Call for when there are ongoing incident on the route.
|
void |
onIncidentWithDistanceResult(SimpleArrayMap<Incident,Double> incidentToDistanceMap)
Call for when the route tracker has finished processing the route and mapped all the incidents to a route point.
|
void |
onParkingAlert(ParkingInfo parkingInfo)
Method that will be called when the parking request was successful and the response is good.
|
void |
onParkingError(Error error)
Method that will be called when a parking request is not successful.
|
void |
onRequestedRouteResults(RequestRouteResults requestRouteResults)
Method that will be called when new routes are successfully requested.
|
void |
onRouteError(Error error)
Method that will be called when a route request is not successful.
|
void |
onRouteStatus(AlertsManager.OnRouteStatus routeStatus,
GeoPoint currentLocation,
double distanceRemaining)
Callback for route status updates.
|
void |
onStartTrackingRoute(Route route)
Callback invoked when started tracking a new route.
|
void |
onUpdatedRouteResults(List<Route> routes)
Method that will be called when the the list of routes that should be collectively updated are successfully updated.
|
void |
onUpdatedRouteResults(UpdatedRouteResults updatedRouteResults)
Method that will be called when updated routes are successfully requested from a tracked route.
|
public void onParkingAlert(ParkingInfo parkingInfo)
parkingInfo
- Parking information.public void onIncidentAlertResult(List<Incident> incidents)
incidents
- The list of Incident
.public void onIncidentWithDistanceResult(SimpleArrayMap<Incident,Double> incidentToDistanceMap)
incidentToDistanceMap
- The map of Incident
to their driving distance from origin.public void onDangerousSlowdownAlertResult(List<DangerousSlowdown> dangerousSlowdowns)
dangerousSlowdowns
- The list of DangerousSlowdown
.public void onDangerousSlowdownWithDistanceResult(SimpleArrayMap<DangerousSlowdown,Double> dangerousSlowdownsToDistanceMap)
dangerousSlowdownsToDistanceMap
- The map of DangerousSlowdown
to their driving distance from origin.public void onStartTrackingRoute(Route route)
route
- The route being tracked.public void onRouteStatus(AlertsManager.OnRouteStatus routeStatus, GeoPoint currentLocation, double distanceRemaining)
routeStatus
- The route status as defined in AlertsManager.OnRouteStatus
.currentLocation
- The current location on the route, an instance of GeoPoint
,
the value will be the closest point on the route within the route threshold otherwise just return the current location.distanceRemaining
- The distance remaining along the route. The units of this value
are based off of UserPreferences.getSettingUnits()
.
The value may be -1 if unknown as in the AlertsManager.OnRouteStatus.OFF_ROUTE
case.public void onRequestedRouteResults(RequestRouteResults requestRouteResults)
RouteManager.IRouteResponseListener
.requestRouteResults
- The results.public void onUpdatedRouteResults(UpdatedRouteResults updatedRouteResults)
RouteManager.IUpdatedRouteListener
.updatedRouteResults
- The results.public void onUpdatedRouteResults(List<Route> routes)
routes
- The results.public void onRouteError(Error error)
error
- Error
Object containing information about the error such as the server error id and error messageCopyright © 2013-2018 INRIX, Inc. All Rights Reserved.