HERE Android SDK Developer's Guide

NavigationManagerEventListener

The class NavigationManagerEventListener is a member of com.here.android.mpa.guidance.NavigationManager.

Class Summary

public static abstract class NavigationManager.NavigationManagerEventListener

extends java.lang.Object

NavigationManagerEventListener provides callback of general navigation manager related events from NavigationManager .

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in NavigationManagerEventListener
Constructors

NavigationManagerEventListener ()

Method Summary

Table 2. Methods in NavigationManagerEventListener
Methods

public void onCountryInfo (String currentCountry, String nextCountry)

Callback when country changes.

public void onEnded (NavigationMode mode)

Callback when navigation, simulation or tracking has just been ended.

public void onMapUpdateModeChanged (MapUpdateMode mode)

Callback when the map update mode has been changed

public void onNavigationModeChanged ()

Callback for Navigation Mode changed event.

public void onRouteUpdated (Route newRoute)

Callback to notify that setRoute(Route) has taken effect.

public void onRunningStateChanged ()

Callback for Navigation Manager state changed event.

public void onStopoverReached (int index)

Callback indicating that a route stopover has been reached.

Class Details

NavigationManagerEventListener provides callback of general navigation manager related events from NavigationManager . By default, empty implementations are provided for each callback, users may selectively overload specific methods that are of interest.

Constructor Details

NavigationManagerEventListener ()

Method Details

public void onCountryInfo (String currentCountry, String nextCountry)

Callback when country changes.

No callback will be triggered if the HERE license key is invalid.

Parameters:

  • currentCountry

    The 3-letter country code related to current position

  • nextCountry

    The 3-letter country code you are entering

public void onEnded (NavigationMode mode)

Callback when navigation, simulation or tracking has just been ended.

Parameters:

public void onMapUpdateModeChanged (MapUpdateMode mode)

Callback when the map update mode has been changed

Parameters:

public void onNavigationModeChanged ()

Callback for Navigation Mode changed event.

public void onRouteUpdated (Route newRoute)

Callback to notify that setRoute(Route) has taken effect.

Parameters:

  • newRoute

    The new Route used by the NavigationManager.

public void onRunningStateChanged ()

Callback for Navigation Manager state changed event.

public void onStopoverReached (int index)

Callback indicating that a route stopover has been reached.

Note that in addition to this, onManeuverEvent() callback will also be received. Furthermore, note that a RouteWaypoint of type RouteWaypoint.Type#VIA_WAYPOINT is not considered to be a route stopover.

Parameters:

  • index

    The index of the stopover that was reached, starting from 0. Stopovers can be retrieved by index from the RoutePlan.

See also:

getWaypoint(int)