public abstract class BackupObserver extends Object
Constructor and Description |
---|
BackupObserver() |
Modifier and Type | Method and Description |
---|---|
void |
backupFinished(int status)
The backup process has completed.
|
void |
onResult(String currentBackupPackage,
int status)
The backup of single package has completed.
|
void |
onUpdate(String currentBackupPackage,
BackupProgress backupProgress)
This method could be called several times for packages with full data backup.
|
public void onUpdate(String currentBackupPackage, BackupProgress backupProgress)
currentBackupPackage
- The name of the package that now being backuped.backupProgress
- Current progress of backup for the package.public void onResult(String currentBackupPackage, int status)
currentBackupPackage
- The name of the package that was backuped.status
- Zero on success; a nonzero error code if the backup operation failed.public void backupFinished(int status)
status
- Zero on success; a nonzero error code if the backup operation
as a whole failed.