VMXFoundry.OfflineObjects.drop
Offline Objects drop function deletes the database schema along with all its data. Success or failure is reported through callbacks provided to the drop API.
Volt MX Iris (JavaScript)
Signature
Parameters
Parameter | Type | Description | Required |
options | JSON | Drop options such as device database, encryption passphrase and so on. | Yes |
successCallback | Function | The function is invoked on success. | Yes |
failureCallback | Function | The function is invoked on an error with the cause of failure as an argument. | Yes |
Option | Type | Description | Required |
---|---|---|---|
deviceDbEncryptionKey | String | Encryption passphrase must be a string of six characters long. For further information, refer Offline Objects Getting Started Guide. **_Note:*** Not applicable for Mobile Web and Desktop Web channels. |
No |
deviceDbPath | String | Device database is created at the given deviceDbPath location. The default Offline Objects database path for Windows Kiosk applications is C:\Users\User\AppData\Local . You can use the deviceDbPath option to override the default path. This options helps you to install more than one Offline enabled application by using the Offline Objects database at desired location. Important: The default Offline Objects database location for Windows Kiosk is C:\Users\User\AppData\Local\AppID\Database . This impacts application upgrades that were built with the earlier versions of the plugin to retain the existing Offline Objects database, rebuild the Kiosk application with the deviceDbPath option and pass the C:\Users\User\AppData\Local location as an input to the setup, reset, and drop APIs. |
No |
Return Type
void
Example
Android (Java)
Signature
Parameters
Parameter | Type | Description | Required |
options | HashMap<String, object> | Drop option such as device database, encryption key and so on. | Yes |
callback | VMXCallback | Application implements onSuccess and onFailure methods of VMXCallback interface. | Yes |
Drop Options
Option | Type | Description | Required |
---|---|---|---|
deviceDbEncryptionKey | String | Encryption passphrase must be a string with at least six characters long. Refer Offline Objects Getting Started Guide for more details. | No |
Return Type
void
Example
iOS (Objective C)
Signature
Parameters
Parameter | Type | Description | Required |
options | NSDictionary<NSString*, id> | Drop options such as device database, encryption passphrase and so on. | Yes |
onSuccess | VMXSuccessCompletionHandler | The function is invoked on success. | Yes |
onFailure | VMXFailureCompletionHandler | The function is invoked on an error with the cause of failure as an argument. | Yes |
Setup Options
Option | Type | Description | Required |
---|---|---|---|
deviceDbEncryptionKey | NSString | Encryption passphrase must be a string with at least six characters long. For more details, refer Offline Objects Getting Started Guide. | No |
Return Type
void