Classes | |
interface | TrafficSeverity |
Public Member Functions | |
TrafficInfo (@TrafficSeverity final int severity, final GeoBoundingBox affectedArea, final String id, final int distance, final int affectedLength, final int delay) | |
int | getSeverity () |
GeoBoundingBox | getAffectedArea () |
String | getUniqueId () |
int | getDistance () |
int | getAffectedLength () |
long | getDelay () |
int | describeContents () |
void | writeToParcel (final Parcel dest, final int flags) |
boolean | equals (final Object o) |
int | hashCode () |
Public Member Functions inherited from com.sygic.sdk.BaseNativeParcelable | |
boolean | isValidParcelable () |
Static Public Attributes | |
static final Parcelable.Creator< TrafficInfo > | CREATOR |
Protected Member Functions | |
TrafficInfo (final Parcel in) | |
Additional Inherited Members | |
Protected Attributes inherited from com.sygic.sdk.BaseNativeParcelable | |
boolean | mIsValidParcelable = true |
Class contains information about traffic on the route. It determines type of incident, delay, etc...
com.sygic.sdk.navigation.traffic.TrafficInfo.TrafficInfo | ( | @TrafficSeverity final int | severity, |
final GeoBoundingBox | affectedArea, | ||
final String | id, | ||
final int | distance, | ||
final int | affectedLength, | ||
final int | delay | ||
) |
|
protected |
int com.sygic.sdk.navigation.traffic.TrafficInfo.describeContents | ( | ) |
For documentation, see android.os.Parcelable.describeContents()
boolean com.sygic.sdk.navigation.traffic.TrafficInfo.equals | ( | final Object | o | ) |
GeoBoundingBox com.sygic.sdk.navigation.traffic.TrafficInfo.getAffectedArea | ( | ) |
Return the bounding box affecting this event.
int com.sygic.sdk.navigation.traffic.TrafficInfo.getAffectedLength | ( | ) |
Returns the full length of the traffic event during tracking or the portion of the route affected by the traffic event during navigation.
long com.sygic.sdk.navigation.traffic.TrafficInfo.getDelay | ( | ) |
Returns the time delay on route.
int com.sygic.sdk.navigation.traffic.TrafficInfo.getDistance | ( | ) |
Returns the distance from the last callback position to the traffic event.
int com.sygic.sdk.navigation.traffic.TrafficInfo.getSeverity | ( | ) |
Returns the severity of the traffic event, from "Normal" to "Blocking".
String com.sygic.sdk.navigation.traffic.TrafficInfo.getUniqueId | ( | ) |
Returns the event unique id.
int com.sygic.sdk.navigation.traffic.TrafficInfo.hashCode | ( | ) |
void com.sygic.sdk.navigation.traffic.TrafficInfo.writeToParcel | ( | final Parcel | dest, |
final int | flags | ||
) |
For documentation, see android.os.Parcelable.writeToParcel()
|
static |