BackupService API
BackupService provides functionality to create and restore backups of all locally stored SDK data.
To access BackupService functions; get its instance from DataSapien object: DataSapien.getBackupService().
Functions (JavaScript)
| Public functions | |
Promise <string | null> | Creates a full SDK backup as a serialized JSON string. Parameters
|
Promise <Void> | Restores SDK state from a previously created backup JSON string. Parameters
|
Notes
- Backup JSON must be exactly what
createBackup()produced. - Large backups are supported; processing happens entirely on-device.