StopTripCallback
StopTripCallback API
onSuccess()
onSuccess()void onSuccess()
onFailure()
onFailure()void onFailure(@Nullable SdkStatus sdkStatus)
Parameters
Last updated
This interface is used with stopTrip(StopTripCallback).
onSuccess()void onSuccess()Called when an external trip is successfully stopped.
onFailure()void onFailure(@Nullable SdkStatus sdkStatus)Called when a trip stop fails. Check the
SdkStatusobject 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, callisTripOngoing().
sdkStatus
An SdkStatus object containing the current SDK status.
Last updated