public class GuidanceNextManeuverData
extends java.lang.Object
implements android.os.Parcelable
GuidanceNextManeuverView.
This class can be used to hold an icon along with street name and distance.
GuidanceNextManeuverPresenter can be used to get notified on new instances of this class during guidance.| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<GuidanceNextManeuverData> |
CREATOR |
| Modifier | Constructor and Description |
|---|---|
|
GuidanceNextManeuverData(java.lang.Integer iconId,
java.lang.Long distance,
java.lang.String streetName)
Constructs a new instance using the provided icon and info strings.
|
protected |
GuidanceNextManeuverData(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object obj1) |
java.lang.Long |
getDistance()
Gets the distance to the maneuver.
|
java.lang.Integer |
getIconId()
Gets the icon id of the next maneuver.
|
java.lang.String |
getStreetName()
Gets street name after the next maneuver.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<GuidanceNextManeuverData> CREATOR
public GuidanceNextManeuverData(java.lang.Integer iconId,
java.lang.Long distance,
java.lang.String streetName)
iconId - resource id of the maneuver icon.distance - distance to the maneuver displayed on GuidanceNextManeuverViewstreetName - street name after the maneuver displayed on GuidanceNextManeuverViewprotected GuidanceNextManeuverData(android.os.Parcel in)
public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelablepublic java.lang.Integer getIconId()
public java.lang.Long getDistance()
public java.lang.String getStreetName()
String containing street name.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj1)
equals in class java.lang.Object