Pause Trip (Android)
Explore how to pause a trip on Android with Trips v2.
The pause trip method allows you to pause the trip with the previously created tripID.
Roam.pauseTrip("tripId", new RoamTripCallback() {
@Override
public void onSuccess(RoamTripResponse response) {
//get trip details
}
@Override
public void onError(Error error) {
//get error details
}
});
Roam.pauseTrip("tripId", object : RoamTripCallback {
override fun onSuccess(response: RoamTripResponse) {
//get trip details
}
override fun onError(error: Error?) {
//get error details
}
})
The trip response and its parameters are similar to those of the createTrip method.