Explore how to end a trip on Android with Trips v2.
the End Trip method allows you to end the trip with the previously created tripID. If you want to stop tracking, then you can pass stopTracking as true or false.
true
false
Roam.endTrip("tripId",true, new RoamTripCallback() { @Override public void onSuccess(RoamTripResponse response) { //get trip details } @Override public void onError(Error error) { //get error details } });
Roam.endTrip("tripId", true, 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.
Last updated 1 year ago