public class GuidanceNextManeuverPresenter extends BaseGuidancePresenter
GuidanceNextManeuverData during guidance. This data can be fed into
GuidanceNextManeuverView to inform the user about maneuver to take after current one.
You must call resume() to start listening for guidance events.
GuidanceNextManeuverListener.onDataChanged(GuidanceNextManeuverData).| Constructor and Description |
|---|
GuidanceNextManeuverPresenter(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(GuidanceNextManeuverListener listener)
Adds a
GuidanceNextManeuverListener. |
protected int |
getIcon(com.here.android.mpa.routing.Maneuver maneuver)
Gets the icon identifier for
Maneuver. |
void |
handleManeuverEvent()
Called after resuming the presenter.
|
protected void |
handleNewInstructionEvent()
Notifies on new instruction events generated by
NavigationManager. |
void |
removeListener(GuidanceNextManeuverListener listener)
Remove a
GuidanceNextManeuverListener. |
disableSpeedWarnings, enableSpeedWarnings, getAfterNextManeuver, getDestinationDistance, getEta, getNextManeuver, getNextManeuverDistance, getRoute, getTimeToArrival, handleGpsLost, handleGpsRestore, handlePositionUpdate, handleRerouteBegin, handleRerouteEnd, handleRerouteFailed, handleSpeedExceeded, handleSpeedExceededEnd, pause, resume, setRoutepublic GuidanceNextManeuverPresenter(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 handleManeuverEvent()
BaseGuidancePresenterhandleManeuverEvent in class BaseGuidancePresenterprotected void handleNewInstructionEvent()
BaseGuidancePresenterNavigationManager.
Subclasses may override the method if they are interested in the events forwarded by
NavigationManager.NewInstructionEventListener.handleNewInstructionEvent 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(GuidanceNextManeuverListener listener)
GuidanceNextManeuverListener.listener - the listener to add to the list of listeners.public void removeListener(GuidanceNextManeuverListener listener)
GuidanceNextManeuverListener.listener - the listener to remove from the list of listeners.