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.

Parameters:

  • index

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

See also:

RoutePlan#getWaypointAt()

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.