HERE Android SDK Developer's Guide

Listener<T, S extends Enum<?>>

The interface Listener<T, S extends Enum<?>> is a member of com.here.android.mpa.routing.Router.

Type Parameters:

  • T
  • S

Interface Summary

public static abstract interface Router.Listener

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in Listener<T, S extends Enum<?>>
Methods

public abstract void onCalculateRouteFinished (T response, S error)

A callback indicating that the 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

Method Details

public abstract void onCalculateRouteFinished (T response, S error)

A callback indicating that the route calculation operation has finished. You are free to re-use the Router to perform another route calculation once this callback has been received.

Parameters:

  • response

    The result of the route calculation operation

  • error

    A response code indicating any issues encountered during route calculation

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

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.