public class GuidanceStreetLabelPresenter extends BaseGuidancePresenter
GuidanceStreetLabelData objects on maneuver update and feds them into
registered listeners (e.g. GuidanceStreetLabelView.| Constructor and Description |
|---|
GuidanceStreetLabelPresenter(android.content.Context context,
com.here.android.mpa.guidance.NavigationManager navigationManager,
com.here.android.mpa.routing.Route route)
Constructs a new instance using a
NavigationManager instance and
a route to follow during guidance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(GuidanceStreetLabelListener listener)
Adds a
GuidanceStreetLabelListener. |
protected void |
handleGpsLost()
Notifies when GPS signal is lost.
|
protected void |
handleGpsRestore()
Notifies when GPS signal is restored.
|
void |
handleManeuverEvent()
Called after resuming the presenter.
|
void |
handleNewInstructionEvent()
Notifies on new instruction events generated by
NavigationManager. |
void |
removeListener(GuidanceStreetLabelListener listener)
Remove a
GuidanceStreetLabelListener. |
disableSpeedWarnings, enableSpeedWarnings, getAfterNextManeuver, getDestinationDistance, getEta, getNextManeuver, getNextManeuverDistance, getRoute, getTimeToArrival, handlePositionUpdate, handleRerouteBegin, handleRerouteEnd, handleRerouteFailed, handleSpeedExceeded, handleSpeedExceededEnd, pause, resume, setRoutepublic GuidanceStreetLabelPresenter(android.content.Context context,
com.here.android.mpa.guidance.NavigationManager navigationManager,
com.here.android.mpa.routing.Route route)
NavigationManager instance and
a route to follow during guidance.context - the required Context.navigationManager - a NavigationManager.route - a Route.public void handleNewInstructionEvent()
BaseGuidancePresenterNavigationManager.
Subclasses may override the method if they are interested in the events forwarded by
NavigationManager.NewInstructionEventListener.handleNewInstructionEvent in class BaseGuidancePresenterpublic void handleManeuverEvent()
BaseGuidancePresenterhandleManeuverEvent in class BaseGuidancePresenterprotected void handleGpsLost()
BaseGuidancePresenterhandleGpsLost in class BaseGuidancePresenterprotected void handleGpsRestore()
BaseGuidancePresenterhandleGpsRestore in class BaseGuidancePresenterpublic void addListener(GuidanceStreetLabelListener listener)
GuidanceStreetLabelListener.listener - the listener to add to the list of listeners.public void removeListener(GuidanceStreetLabelListener listener)
GuidanceStreetLabelListener.listener - the listener to remove from the list of listeners.