Android.App.Backup.SharedPreferencesBackupHelper.PerformBackup Method
Backs up the configured Android.Content.ISharedPreferences groups.

Syntax

[Android.Runtime.Register("performBackup", "(Landroid/os/ParcelFileDescriptor;Landroid/app/backup/BackupDataOutput;Landroid/os/ParcelFileDescriptor;)V", "GetPerformBackup_Landroid_os_ParcelFileDescriptor_Landroid_app_backup_BackupDataOutput_Landroid_os_ParcelFileDescriptor_Handler")]
public virtual void PerformBackup (Android.OS.ParcelFileDescriptor oldState, BackupDataOutput data, Android.OS.ParcelFileDescriptor newState)

Parameters

oldState
An open, read-only Android.OS.ParcelFileDescriptor pointing to the last backup state provided by the application. May be null, in which case no prior state is being provided and the application should perform a full backup.
data
An open, read/write Android.App.Backup.BackupDataOutput pointing to the backup data destination. Typically the application will use backup helper classes to write to this file.
newState
An open, read/write Android.OS.ParcelFileDescriptor pointing to an empty file. The application should record the final backup state here after writing the requested data to the data output stream.

Remarks

Requirements

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