IBackupHelper.RestoreEntity(BackupDataInputStream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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>
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.