public static interface DemandClient.RideUpdateListener
Ride
updates.Modifier and Type | Method and Description |
---|---|
void |
onErrorOccurred(Throwable error)
Called when an error occurs.
|
void |
onRideLocationChanged(Ride ride,
RideLocation location)
Called when the ride location changes.
|
void |
onRideStatusChanged(Ride ride,
RideStatusLog statusLog)
Called when the ride status changes.
|
void onRideStatusChanged(Ride ride, RideStatusLog statusLog)
ride
- the updated ridestatusLog
- the status log, contains the new status and a list of all previous
statusesvoid onRideLocationChanged(Ride ride, RideLocation location)
ride
- the updated ridelocation
- the new locationvoid onErrorOccurred(Throwable error)
error
- the error that occurred
The Throwable can be the following exceptions:
HMDemandRideNotFoundException
HMAuthException