Android.App.Backup.BackupManager.RequestRestore Method
Restore the calling application from backup.

Syntax

[Android.Runtime.Register("requestRestore", "(Landroid/app/backup/RestoreObserver;)I", "GetRequestRestore_Landroid_app_backup_RestoreObserver_Handler")]
public virtual int RequestRestore (RestoreObserver observer)

Parameters

observer
The Android.App.Backup.RestoreObserver to receive callbacks during the restore operation. This must not be null.

Returns

Documentation for this section has not yet been entered.

Remarks

Restore the calling application from backup. The data will be restored from the current backup dataset if the application has stored data there, or from the dataset used during the last full device setup operation if the current backup dataset has no matching data. If no backup data exists for this application in either source, a nonzero value will be returned.

If this method returns zero (meaning success), the OS will attempt to retrieve a backed-up dataset from the remote transport, instantiate the application's backup agent, and pass the dataset to the agent's BackupAgent.OnRestore(BackupDataInput, System.Int32, System.Int32) method.

[Android Documentation]

Requirements

Namespace: Android.App.Backup
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8