HERE Android SDK Developer's Guide

OnSpeedListener

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

Interface Summary

public static abstract interface Nlp.OnSpeedListener

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

The speed value event listener interface

[For complete information, see the section Interface Details]

Method Summary

Table 1. Methods in OnSpeedListener
Methods

public abstract void onSpeed (Error error, int kph)

A callback with the average speed.

Interface Details

The speed value event listener interface

Method Details

public abstract void onSpeed (Error error, int kph)

A callback with the average speed. e.g. "What is my speed"

Parameters:

  • error

    Error information for calculating average speed. If FAILED, speed value of less than 0 will be returned.

  • kph

    Kilometers per hour