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