HERE Android SDK Developer's Guide

Listener

The interface Listener is a member of com.here.android.mpa.routing.RouteManager.

Interface Summary

public static abstract interface RouteManager.Listener

Represents a listener to provide information about RouteManager events.\

[For complete information, see the section Interface Details]

See also:

calculateRoute(RoutePlan, Listener)

Method Summary

Table 1. Methods in Listener
Methods

public abstract void onCalculateRouteFinished (Error errorCode, java.util.List <RouteResult> routeResults)

A callback indicating that a route calculation operation has finished.

public abstract void onProgress (int percentage)

A callback indicating the progress level of the current route calculation operation, a percentage value within the range of [0..100].

Interface Details

Represents a listener to provide information about RouteManager events.\

See also:

calculateRoute(RoutePlan, Listener)

Method Details

public abstract void onCalculateRouteFinished (Error errorCode, java.util.List <RouteResult> routeResults)

A callback indicating that a route calculation operation has finished. In the case of VIOLATES_OPTIONS, one or more RouteResult in the returned list contains a list of violated RouteOptions . For other java.lang.Error , the list size of RouteResult will be 0.

Parameters:

  • errorCode

    A java.lang.Error indicating the error code for the route calculation (could be NONE)

  • routeResults

    A List of RouteResult

See also:

getViolatedOptions()

public abstract void onProgress (int percentage)

A callback indicating the progress level of the current route calculation operation, a percentage value within the range of [0..100]. Note that in certain circumstances a recalculation is required and this percentage will go from 100 to 0.

Parameters:

  • percentage

    Progress completion percentage