VMXFoundry.OfflineObjects.rollback
Offline Objects rollback function rolls back all changes of the application in the device local database to its previous sync state.
Volt MX Iris (JavaScript)
Signature
Input Parameters
Parameter | Type | Description | Required |
successCallback | Function | The function is invoked on successful rollback. | Yes |
failureCallback | Function | The function is invoked on rollback failure with the cause of failure as an argument. | Yes |
Return Type
void
Example
Android (Java)
Signature
Parameters
Parameter | Type | Description | Required |
callback | VMXCallback | Application implements onSuccess and onFailure methods of VMXCallback interface. | Yes |
Return Type
void
Example
iOS (Objective C)
Signature
Parameters
Parameter | Type | Description | Required |
onSuccess | VMXSuccessCompletionHandler | The function invoked on successful rollback. | Yes |
onFailure | VMXFailureCompletionHandler | The function is invoked on rollback failure with the cause of failure as an argument. | Yes |
Return Type
void