Share via


IBackupHelper.RestoreEntity(BackupDataInputStream) Method

Definition

Called by android.app.backup.BackupAgentHelper BackupAgentHelper to restore a single entity from the restore data set.

[Android.Runtime.Register("restoreEntity", "(Landroid/app/backup/BackupDataInputStream;)V", "GetRestoreEntity_Landroid_app_backup_BackupDataInputStream_Handler:Android.App.Backup.IBackupHelperInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void RestoreEntity (Android.App.Backup.BackupDataInputStream? data);
[<Android.Runtime.Register("restoreEntity", "(Landroid/app/backup/BackupDataInputStream;)V", "GetRestoreEntity_Landroid_app_backup_BackupDataInputStream_Handler:Android.App.Backup.IBackupHelperInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RestoreEntity : Android.App.Backup.BackupDataInputStream -> unit

Parameters

data
BackupDataInputStream

An open BackupDataInputStream from which the backup data can be read.

Attributes

Remarks

Called by android.app.backup.BackupAgentHelper BackupAgentHelper to restore a single entity from the restore data set. This method will be called for each entity in the data set that belongs to this handler. <p class="note"> <strong>Note:</strong> Do not close the data stream. Do not read more than android.app.backup.BackupDataInputStream#size() size() bytes from data.</p>

Java documentation for android.app.backup.BackupHelper.restoreEntity(android.app.backup.BackupDataInputStream).

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