public class ManeuverResources
extends java.lang.Object
Maneuver.| Constructor and Description |
|---|
ManeuverResources(android.content.Context context,
java.util.List<com.here.android.mpa.routing.Maneuver> maneuverList) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArrivedAtDestinationInstruction()
Get the localized "You've arrived" string to indicate that destination was reached.
|
int |
getDestinationIconId()
Gets destination icon id.
|
int |
getDistanceFromNext(int index)
Gets distance from maneuver at index to next
Maneuver. |
java.lang.String |
getExitDirections(com.here.android.mpa.routing.Maneuver maneuver)
Gets the exit direction for given
Maneuver. |
int |
getManeuverIconId(int index)
Gets icon id for a given index of maneuver list.
|
java.lang.String |
getManeuverInstruction(int index)
Gets maneuver instruction at index.
|
java.lang.String |
getRoadToDisplay(int index)
Gets the road name for a
Maneuver at the given indes. |
int |
getStartIconId()
Gets start icon id.
|
java.lang.String |
getString(java.lang.Integer id)
Get localized string from the application's package's default string table.
|
public ManeuverResources(android.content.Context context,
java.util.List<com.here.android.mpa.routing.Maneuver> maneuverList)
public int getStartIconId()
Maneuver class.public int getDestinationIconId()
Maneuver class.public int getManeuverIconId(int index)
index - the index of the manuever.public java.lang.String getManeuverInstruction(int index)
Please note that if maneuver is not mapped to any instruction string, then a 'head to orientation' instruction is returned.
index - the index of the manuever.public int getDistanceFromNext(int index)
Maneuver.index - the index of the maneuver to use.public java.lang.String getRoadToDisplay(int index)
Maneuver at the given indes.index - the index of the maneuver to use.public java.lang.String getExitDirections(com.here.android.mpa.routing.Maneuver maneuver)
Maneuver.maneuver - the maneuver for which the exit direction will be returned.public java.lang.String getString(java.lang.Integer id)
id - resource id for the string.public java.lang.String getArrivedAtDestinationInstruction()