Sync Trip (Android)

Explore how to sync a trip on Android with Trips v2.

Sync Trip allows you to sync a local trip to the server by using tripID.

 Roam.syncTrip("tripId", new RoamSyncTripCallback() {
            @Override
            public void onSuccess(RoamSyncTripResponse response) {
              //get sync trip details
            }

            @Override
            public void onError(Error error) {
              //get error details  
            }
        });

You can access the sync trip response parameters below:

Parameter
Type
Description

response.getCode()

Integer

The success response code of the method.

response.getMessage()

String

The success response message of the method.

response.getDescription()

String

The error response description of the method.

response.getData().getTripId()

String

Unique identifier for the object.

response..getData().getIsSynced()

boolean

The boolean value to determine if the trip is synced.

Last updated