次の方法で共有


IBackupHelper.WriteNewStateDescription(ParcelFileDescriptor) Method

Definition

Called by android.app.backup.BackupAgentHelper BackupAgentHelper after a restore operation to write the backup state file corresponding to the data as processed by the helper.

[Android.Runtime.Register("writeNewStateDescription", "(Landroid/os/ParcelFileDescriptor;)V", "GetWriteNewStateDescription_Landroid_os_ParcelFileDescriptor_Handler:Android.App.Backup.IBackupHelperInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void WriteNewStateDescription (Android.OS.ParcelFileDescriptor? newState);
[<Android.Runtime.Register("writeNewStateDescription", "(Landroid/os/ParcelFileDescriptor;)V", "GetWriteNewStateDescription_Landroid_os_ParcelFileDescriptor_Handler:Android.App.Backup.IBackupHelperInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member WriteNewStateDescription : Android.OS.ParcelFileDescriptor -> unit

Parameters

newState
ParcelFileDescriptor

A android.os.ParcelFileDescriptor to which the new state will be written.

Attributes

Remarks

Called by android.app.backup.BackupAgentHelper 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 #performBackup(ParcelFileDescriptor, BackupDataOutput, ParcelFileDescriptor) performBackup() method.

This method will be called even if the handler's #restoreEntity(BackupDataInputStream) restoreEntity() method was never invoked during the restore operation. <p class="note"> <strong>Note:</strong> The helper should not close or seek the newState file descriptor.

Java documentation for android.app.backup.BackupHelper.writeNewStateDescription(android.os.ParcelFileDescriptor).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to