HERE Android SDK Developer's Guide

OnTrafficModeListener

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

Interface Summary

public static abstract interface Nlp.OnTrafficModeListener

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

The traffic mode changed event listener interface

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnTrafficModeListener
Methods

public abstract void onTrafficMode (Error error, boolean on, String whereLocation)

A callback indicating that the traffic mode was switched on or off.

Interface Details

The traffic mode changed event listener interface

Method Details

public abstract void onTrafficMode (Error error, boolean on, String whereLocation)

A callback indicating that the traffic mode was switched on or off. e.g. "Turn on/off traffic"

Parameters:

  • error

    Error status of retrieving traffic mode, FAILED if traffic request fails or permission is not allowed.

  • on

    If true, traffic mode is enabled

  • whereLocation

    The string location where to check the traffic