Resume Trip (Android)
Explore how to resume a trip on Android with Trips v2.
The Resume Trip method allows you to resume the trip with the previously paused tripID.
Roam.resumeTrip("tripId", new RoamTripCallback() {
@Override
public void onSuccess(RoamTripResponse response) {
//get trip details
}
@Override
public void onError(Error error) {
//get error details
}
});
Roam.resumeTrip("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.