Android.App.Backup.SharedPreferencesBackupHelper.WriteNewStateDescription Method
Called by Android.App.Backup.BackupAgentHelper after a restore operation to write the backup state file corresponding to the data as processed by the helper.

Syntax

[Android.Runtime.Register("writeNewStateDescription", "(Landroid/os/ParcelFileDescriptor;)V", "GetWriteNewStateDescription_Landroid_os_ParcelFileDescriptor_Handler")]
public override void WriteNewStateDescription (Android.OS.ParcelFileDescriptor fd)

Parameters

fd
A Android.OS.ParcelFileDescriptor to which the new state will be written.

Remarks

Called by Android.App.Backup.BackupAgentHelper after a restore operation to write the backup state file corresponding to the data as processed by the helper. The data written here will be available to the helper during the next call to its IBackupHelper.PerformBackup(Android.OS.ParcelFileDescriptor, Android.App.Backup.BackupDataOutput, Android.App.Backup.BackupDataOutput) method.

This method will be called even if the handler's IBackupHelper.RestoreEntity(BackupDataInputStream) method was never invoked during the restore operation.

Note: The helper should not close or seek the newState file descriptor.

[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