public abstract class ConsumerTrip extends
TripModel
This class is deprecated.
Use
TripModel
instead.
Represents a specific trip. Used to register callbacks for trip data changes. The trip automatically updates in the background if active callbacks are registered.
Inherited Method Summary
From class
com.google.android.libraries.mapsplatform.transportation.consumer.managers.TripModel
final ConsumerTripOptions |
getConsumerTripOptions()
This method is deprecated. use
getTripModelOptions() instead.
|
TripInfo |
getTripInfo()
Return
TripInfo object containing information about the current trip.
|
TripModelOptions |
getTripModelOptions()
Returns the current
TripModelOptions set for this trip.
|
String |
getTripName()
Gets the trip name.
|
boolean |
isActive()
Returns whether TripModel is actively updating itself with fresh trip
information from Fleet Engine.
|
boolean | |
void |
registerTripCallback(LifecycleOwner lifecycleOwner, boolean
updateInBackground,
TripModelCallback callback)
Registers a callback to receive updates to this trip.
|
void |
registerTripCallback(TripModelCallback
callback)
Similar to
registerTripCallback(LifecycleOwner, boolean,
TripModelCallback) , but without monitoring a
LifecycleOwner .
|
final void |
setConsumerTripOptions(ConsumerTripOptions
options)
This method is deprecated. Use
setTripModelOptions(TripModelOptions) instead.
|
void | |
void |
unregisterTripCallback(TripModelCallback
callback)
Unregisters the callback registered with
registerTripCallback(LifecycleOwner, boolean,
TripModelCallback) .
|