On-demand Rides and Deliveries Solution is currently available only to select partners. Contact sales to learn more.

Navigator.RemainingTimeOrDistanceChangedListener

Stay organized with collections Save and categorize content based on your preferences.
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 setRemainingTimeOrDistanceChangedListener(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 setRemainingTimeOrDistanceChangedListener(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 getCurrentTimeAndDistance(). To get the remaining time and distance to all destinations, use getTimeAndDistanceList().