TripUpdatedCallback

interface TripUpdatedCallback

Callback used in the update function. Trip update is asynchronous and the callback methods will be called once the update is finished, whether it succeeds or not.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
abstract fun onError(error: TripUpdateError)

Called when trip update finishes with an error.

Link copied to clipboard
abstract fun onTripUpdated(trip: Trip)

Called when trip update finishes successfully.