Navigator.RemainingTimeOrDistanceChangedListener

public static interface Navigator.RemainingTimeOrDistanceChangedListener

Defines signatures for methods that are called when the remaining time or distance to the next destination changes.

Public Method Summary

abstract void
onRemainingTimeOrDistanceChanged()
Called on the UI thread when the time or distance to the next destination has changed by more than the thresholds specified in Navigator.addRemainingTimeOrDistanceChangedListener(int, int, Navigator.RemainingTimeOrDistanceChangedListener).

Public Methods

public abstract void onRemainingTimeOrDistanceChanged ()

Called on the UI thread when the time or distance to the next destination has changed by more than the thresholds specified in Navigator.addRemainingTimeOrDistanceChangedListener(int, int, Navigator.RemainingTimeOrDistanceChangedListener). This could be a result of (for example) user movement, a change in traffic conditions, a change in route, a change in destination, or when the remaining time and distance first become known.

To get the remaining time and distance to the next destination, use Navigator.getCurrentTimeAndDistance(). To get the remaining time and distance to all destinations, use Navigator.getTimeAndDistanceList().