HERE Android SDK Developer's Guide

RerouteListener

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

Class Summary

public static abstract class NavigationManager.RerouteListener

extends java.lang.Object

RerouteListener provides callback of route re-calculation related events from NavigationManager .

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in RerouteListener
Constructors

RerouteListener ()

Method Summary

Table 2. Methods in RerouteListener
Methods

public void onRerouteBegin ()

Callback for Re-route begin event.

public void onRerouteEnd (Route route)

Deprecated: As of SDK 3.4.

Callback for Re-route end event

public void onRerouteEnd (RouteResult routeResult)

Callback for Re-route end event.

public void onRerouteFailed ()

Callback for Re-route failure event.

Class Details

RerouteListener provides callback of route re-calculation related events from NavigationManager . By default, empty implementations are provided for each callback method, users may selectively overload specific methods that are of interest.

Note that this is different from route re-calculation due to traffic avoidance, instead, this normally triggered when user strays away from course. See NavigationManager.TrafficAvoidanceMode.

Constructor Details

RerouteListener ()

Method Details

public void onRerouteBegin ()

Callback for Re-route begin event.

public void onRerouteEnd (Route route)

Deprecated: As of SDK 3.4.

Instead use onRerouteEnd(RouteResult).

Callback for Re-route end event

Parameters:

  • route

    The newly calculated Route.

public void onRerouteEnd (RouteResult routeResult)

Callback for Re-route end event.

Parameters:

  • routeResult

See also:

getViolatedOptions()

public void onRerouteFailed ()

Callback for Re-route failure event.