public abstract class ConsumerTripCallback extends
TripModelCallback
This class is deprecated.
Instead use
TripModelCallback
.
Callback registered with
TripModel.registerTripCallback(LifecycleOwner, boolean, TripModelCallback)
or
TripModel.registerTripCallback(TripModelCallback)
.
Public Constructor Summary
Inherited Method Summary
From class
com.google.android.libraries.mapsplatform.transportation.consumer.managers.TripModelCallback
void |
onTripActiveRouteRemainingDistanceUpdated(TripInfo
tripInfo, Integer
distanceMeters)
Called when the remaining distance of the active leg has changed.
|
void |
onTripActiveRouteTrafficUpdated(TripInfo
tripInfo,
TrafficData trafficData)
Called when the traffic conditions on the active route have changed.
|
void | |
void |
onTripDropoffLocationUpdated(TripInfo
tripInfo,
TerminalLocation dropoff)
Called when the trip's dropoff location is updated.
|
void |
onTripDropoffTimeUpdated(TripInfo
tripInfo, Long
timestampMillis)
Called when the vehicle's arrival time or estimated arrival time at the
dropoff point is updated.
|
void |
onTripETAToNextWaypointUpdated(TripInfo
tripInfo, Long
timestampMillis)
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, List<TerminalLocation>
intermediateDestinations)
Called when the trip's list of intermediate destinations has changed.
|
void |
onTripPickupLocationUpdated(TripInfo
tripInfo,
TerminalLocation pickup)
Called when the trip's pickup location is updated.
|
void |
onTripPickupTimeUpdated(TripInfo
tripInfo, Long
timestampMillis)
Called when the vehicle's arrival time or estimated arrival time at the
pickup point is updated.
|
void |
onTripRemainingRouteDistanceUpdated(TripInfo
tripInfo, Integer
distanceMeters)
Called when the distance of the remaining route has changed.
|
void |
onTripRemainingRouteTrafficUpdated(TripInfo
tripInfo,
TrafficData trafficData)
Called when the traffic conditions on the remaining route have changed.
|
void |
onTripRemainingRouteUpdated(TripInfo
tripInfo,
Route route)
Called when the remaining route has changed.
|
void |
onTripRemainingWaypointsUpdated(TripInfo
tripInfo, List<TripWaypoint>
waypointList)
Called when the trip's list of remaining waypoints has changed.
|
void | |
void |
onTripUpdateError(TripInfo
tripInfo,
TripUpdateError error)
Called when there is an error updating the trip state, typically due to a
network connectivity error.
|
void |
onTripUpdated(TripInfo
tripInfo)
Called when the scheduled update has been completed and the
TripModelCallback callbacks have been completed for any
changed data.
|
void |
onTripVehicleLocationUpdated(TripInfo
tripInfo,
VehicleLocation vehicleLocation)
Called when the trip's vehicle location is updated.
|