HERE Android SDK Developer's Guide

OnNavigationListener

The interface OnNavigationListener is a member of com.here.android.mpa.nlp.Nlp.

Interface Summary

public static abstract interface Nlp.OnNavigationListener

   extends com.here.android.mpa.nlp.Nlp.ListenerBase

Navigation listener interface

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnNavigationListener
Methods

public abstract void onStart (Error error, java.util.List <Route> routes, String startingPointName, java.util.List <Place> routePlaces)

A callback with the calculated route and the list of Places.

public abstract void onStop ()

A callback for notifying user to stop navigation.

Interface Details

Navigation listener interface

Method Details

public abstract void onStart (Error error, java.util.List <Route> routes, String startingPointName, java.util.List <Place> routePlaces)

A callback with the calculated route and the list of Places. e.g. "Start navigation"

Parameters:

  • error

    Error information for starting navigation

  • routes

    The list of Routes

  • startingPointName

    The starting point name

  • routePlaces

    Array of Places included into the route, excluding the starting point.

public abstract void onStop ()

A callback for notifying user to stop navigation. e.g. "Stop navigation"