Callback registered with
ConsumerTrip.registerTripCallback(LifecycleOwner, boolean, ConsumerTripCallback)
or
ConsumerTrip.registerTripCallbackWithoutLifecycleOwner(ConsumerTripCallback)
.
Public Constructor Summary
Public Method Summary
void |
onTripActiveRouteRemainingDistanceUpdated(TripInfo
tripInfo)
Called when the remaining distance of the active leg has changed.
|
void |
onTripActiveRouteTrafficUpdated(TripInfo
tripInfo)
Called when the traffic conditions on the active route have changed.
|
void | |
void | |
void |
onTripDropoffTimeUpdated(TripInfo
tripInfo)
Called when the vehicle's arrival time or estimated arrival time at the dropoff
point is updated.
|
void |
onTripETAToNextWaypointUpdated(TripInfo
tripInfo)
Called when the estimated arrival time of the vehicle at the next waypoint
(which may or may not belong to the named trip) has changed.
|
void |
onTripIntermediateDestinationsUpdated(TripInfo
tripInfo)
Called when the trip's list of intermediate destinations has changed.
|
void | |
void |
onTripPickupTimeUpdated(TripInfo
tripInfo)
Called when the vehicle's arrival time or estimated arrival time at the pickup
point is updated.
|
void |
onTripRefreshError(TripInfo
tripInfo, Exception
exception)
Called when there is an error updating the trip state, typically due to a
network connectivity error.
|
void |
onTripRefreshed(TripInfo
tripInfo)
Called when the scheduled refresh has been completed and that
ConsumerTripCallback callbacks have been completed for any changed
data.
|
void |
onTripRemainingRouteDistanceUpdated(TripInfo
tripInfo)
Called when the distance of the remaining route has changed.
|
void |
onTripRemainingRouteTrafficUpdated(TripInfo
tripInfo)
Called when the traffic conditions on the remaining route have changed.
|
void | |
void |
onTripRemainingWaypointsUpdated(TripInfo
tripInfo)
Called when the trip's list of remaining waypoints has changed.
|
void | |
void |
Inherited Method Summary
Public Constructors
public ConsumerTripCallback ()
Public Methods
public void onTripActiveRouteRemainingDistanceUpdated (TripInfo tripInfo)
Called when the remaining distance of the active leg has changed. The active leg is the route from the vehicle until the next waypoint belonging to the trip.
Parameters
tripInfo | Current trip information. |
---|
public void onTripActiveRouteTrafficUpdated (TripInfo tripInfo)
Called when the traffic conditions on the active route have changed.
public void onTripActiveRouteUpdated (TripInfo tripInfo)
Called when the route is updated.
Parameters
tripInfo | Current trip information. |
---|
public void onTripDropoffLocationUpdated (TripInfo tripInfo)
Called when the trip's dropoff location is updated.
Parameters
tripInfo | Current trip information. |
---|
public void onTripDropoffTimeUpdated (TripInfo tripInfo)
Called when the vehicle's arrival time or estimated arrival time at the dropoff point is updated. Before the vehicle arrives, it is an estimate; after, it is the actual arrival time.
Parameters
tripInfo | Current trip information. |
---|
public void onTripETAToNextWaypointUpdated (TripInfo tripInfo)
Called when the estimated arrival time of the vehicle at the next waypoint (which may or may not belong to the named trip) has changed.
Parameters
tripInfo | Current trip information. |
---|
public void onTripIntermediateDestinationsUpdated (TripInfo tripInfo)
Called when the trip's list of intermediate destinations has changed.
public void onTripPickupLocationUpdated (TripInfo tripInfo)
Called when the trip's pickup location is updated.
Parameters
tripInfo | Current trip information. |
---|
public void onTripPickupTimeUpdated (TripInfo tripInfo)
Called when the vehicle's arrival time or estimated arrival time at the pickup point is updated. Before the vehicle arrives, it is an estimate; after, it is the actual arrival time.
Parameters
tripInfo | Current trip information. |
---|
public void onTripRefreshError (TripInfo tripInfo, Exception exception)
Called when there is an error updating the trip state, typically due to a network connectivity error.
Parameters
tripInfo | Current trip information. |
---|---|
exception | The error. |
public void onTripRefreshed (TripInfo tripInfo)
Called when the scheduled refresh has been completed and that
ConsumerTripCallback
callbacks have been completed for any changed data.
Called every time the trip is refreshed even if no data has changed. The refresh
interval can be modified in
ConsumerTrip.setConsumerTripOptions(ConsumerTripOptions)
.
public void onTripRemainingRouteDistanceUpdated (TripInfo tripInfo)
Called when the distance of the remaining route has changed.
public void onTripRemainingRouteTrafficUpdated (TripInfo tripInfo)
Called when the traffic conditions on the remaining route have changed.
public void onTripRemainingRouteUpdated (TripInfo tripInfo)
Called when the remaining route has changed. For example, this may be triggered when the remaining route traffic data has changed or when the remaining route waypoints have changed.
public void onTripRemainingWaypointsUpdated (TripInfo tripInfo)
Called when the trip's list of remaining waypoints has changed.
Parameters
tripInfo | Current trip information. |
---|
public void onTripStatusUpdated (TripInfo tripInfo)
Called when the
Trip.TripStatus
is updated.
Parameters
tripInfo | Current trip information. |
---|
public void onTripVehicleLocationUpdated (TripInfo tripInfo)
Called when the trip's vehicle location is updated.
Parameters
tripInfo | Current trip information. |
---|