public class GuidanceManeuverData
extends java.lang.Object
implements android.os.Parcelable
GuidanceManeuverView
.
This class can be used to hold an icon along with some other details like street name, signpost or exit.
GuidanceManeuverPresenter
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<GuidanceManeuverData> |
CREATOR |
Constructor and Description |
---|
GuidanceManeuverData(int iconId,
java.lang.Long distance,
java.lang.String info1,
java.lang.String info2)
Constructs a new instance using the provided icon, distance and info strings.
|
GuidanceManeuverData(int iconId,
java.lang.Long distance,
java.lang.String info1,
java.lang.String info2,
android.graphics.Bitmap nextRoadIcon)
Constructs a new instance using the provided icons, distance and info strings.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object obj1) |
java.lang.Long |
getDistance()
Gets the distance to the next maneuver.
|
int |
getIconId()
Gets the icon id of the next maneuver.
|
java.lang.String |
getInfo1()
Gets information of 1st line of guidance panel.
|
java.lang.String |
getInfo2()
Gets information of 2nd line of guidance panel.
|
android.graphics.Bitmap |
getNextRoadIcon()
Gets next road icon for this maneuver.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<GuidanceManeuverData> CREATOR
public GuidanceManeuverData(int iconId, java.lang.Long distance, java.lang.String info1, java.lang.String info2)
iconId
- resource id of the maneuver icon.distance
- distance to next Maneuver
.info1
- information for the 1st line of GuidanceManeuverView
. In most cases, it is used to display
highway exit numbers. In case there is no relevant information, null can be set.info2
- information for the 2nd line of GuidanceManeuverView
. In most cases, it is used to display
next maneuver street or the destination.public GuidanceManeuverData(int iconId, java.lang.Long distance, java.lang.String info1, java.lang.String info2, android.graphics.Bitmap nextRoadIcon)
iconId
- resource id of the maneuver icon.distance
- distance to next Maneuver
.info1
- information for the 1st line of this panel. In most cases, it is used to display
highway exit numbers. In case there is no relevant information, null can be set.info2
- information for the 2nd line of this panel. In most cases, it is used to display
next maneuver street or the destination.nextRoadIcon
- next road icon for this maneuver.public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public int describeContents()
describeContents
in interface android.os.Parcelable
public int getIconId()
public java.lang.String getInfo1()
public java.lang.String getInfo2()
public java.lang.Long getDistance()
public android.graphics.Bitmap getNextRoadIcon()
Bitmap
for next road icon for this maneuver.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj1)
equals
in class java.lang.Object