public static interface Trip.ProgressListener
Modifier and Type | Method and Description |
---|---|
void |
onTripArrival(Trip trip)
Callback when we have arrived at the destination.
|
void |
onTripProgress(Trip trip,
long eta,
int distanceRemaining)
Callback with the progress along the Trip.
|
void onTripProgress(Trip trip, long eta, int distanceRemaining)
trip
- The Trip
for the progress, only the active Trip is currently supported.eta
- ETA in UTC (in seconds).distanceRemaining
- Distance remaining (in meters) to the destination of the Trip.void onTripArrival(Trip trip)
Trip.Listener
is registered a onTripActive
call will be received with a null trip after this callback.trip
- The trip object Trip
.