public class IncidentAlert extends Object implements ICancellable, IncidentsManager.IIncidentsResponseListener
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the alert.
|
double |
getLastRequestedDistance()
Returns the last requested distance.
|
void |
onError(Error error)
Called when there is an error.
|
void |
onResult(List<Incident> data)
Called when there is an alert.
|
void |
start()
The alert starts automatically when the alert instance is created.
|
public void cancel()
cancel in interface ICancellablepublic void start()
IncidentAlert.cancel().public void onResult(List<Incident> data)
onResult in interface IDataResponseListener<List<Incident>>data - The list of alerts.public void onError(Error error)
onError in interface IDataResponseListener<List<Incident>>error - The error.public double getLastRequestedDistance()
AlertsManager.AlertOptionsBase.setSpeedFactor(float)Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.