Search…
StopTripCallback
This interface is used with stopTrip(StopTripCallback).

StopTripCallback API

onSuccess()

1
void onSuccess()
Copied!
Called when an external trip is successfully stopped.

onFailure()

1
void onFailure(@Nullable SdkStatus sdkStatus)
Copied!
Called when a trip stop fails. Check the SdkStatus object to find out why.
This method is also called when stopTrip(StopTripCallback) is called while no external trip exists. To check if there is an ongoing external trip, call isTripOngoing().
Parameters
sdkStatus
An SdkStatus object containing the current SDK status.