public class GuidanceManeuverPresenter extends BaseGuidancePresenter
GuidanceManeuverData during guidance. This data can be fed into
GuidanceManeuverView to inform the user about the next maneuvers to take.
You must call resume() to start listening for guidance events.
GuidanceManeuverListener.onDataChanged(GuidanceManeuverData).| Constructor and Description |
|---|
GuidanceManeuverPresenter(android.content.Context context,
com.here.android.mpa.guidance.NavigationManager navigationManager,
com.here.android.mpa.routing.Route route)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(GuidanceManeuverListener listener)
Adds a
GuidanceManeuverListener. |
protected int |
getIcon(com.here.android.mpa.routing.Maneuver maneuver)
Gets the icon identifier for
Maneuver. |
void |
handleManeuverEvent()
Called after resuming the presenter.
|
void |
handlePositionUpdate() |
protected void |
handleRerouteBegin()
Notifies when rerouting begins.
|
void |
removeListener(GuidanceManeuverListener listener)
Remove a
GuidanceManeuverListener. |
disableSpeedWarnings, enableSpeedWarnings, getAfterNextManeuver, getDestinationDistance, getEta, getNextManeuver, getNextManeuverDistance, getRoute, getTimeToArrival, handleGpsLost, handleGpsRestore, handleNewInstructionEvent, handleRerouteEnd, handleRerouteFailed, handleSpeedExceeded, handleSpeedExceededEnd, pause, resume, setRoutepublic GuidanceManeuverPresenter(android.content.Context context,
com.here.android.mpa.guidance.NavigationManager navigationManager,
com.here.android.mpa.routing.Route route)
context - a Context to retrieve resources.navigationManager - a NavigationManager to be used for guidance handling.route - a route to be used for guidance.public void handlePositionUpdate()
handlePositionUpdate in class BaseGuidancePresenterpublic void handleManeuverEvent()
BaseGuidancePresenterhandleManeuverEvent in class BaseGuidancePresenterprotected void handleRerouteBegin()
BaseGuidancePresenterhandleRerouteBegin in class BaseGuidancePresenterprotected int getIcon(com.here.android.mpa.routing.Maneuver maneuver)
Maneuver.maneuver - the Maneuver to get the icon id from.public void addListener(GuidanceManeuverListener listener)
GuidanceManeuverListener.listener - the listener to add to the list of listeners.public void removeListener(GuidanceManeuverListener listener)
GuidanceManeuverListener.listener - the listener to remove from the list of listeners.