共用方式為


BackupAgentHelper.AddHelper(String, IBackupHelper) Method

Definition

Add a helper for a given data subset to the agent's configuration.

[Android.Runtime.Register("addHelper", "(Ljava/lang/String;Landroid/app/backup/BackupHelper;)V", "GetAddHelper_Ljava_lang_String_Landroid_app_backup_BackupHelper_Handler")]
public virtual void AddHelper (string? keyPrefix, Android.App.Backup.IBackupHelper? helper);
[<Android.Runtime.Register("addHelper", "(Ljava/lang/String;Landroid/app/backup/BackupHelper;)V", "GetAddHelper_Ljava_lang_String_Landroid_app_backup_BackupHelper_Handler")>]
abstract member AddHelper : string * Android.App.Backup.IBackupHelper -> unit
override this.AddHelper : string * Android.App.Backup.IBackupHelper -> unit

Parameters

keyPrefix
String

A string used to disambiguate the various helpers within this agent

helper
IBackupHelper

A backup/restore helper object to be invoked during backup and restore operations.

Attributes

Remarks

Add a helper for a given data subset to the agent's configuration. Each helper must have a prefix string that is unique within this backup agent's set of helpers.

Java documentation for android.app.backup.BackupAgentHelper.addHelper(java.lang.String, android.app.backup.BackupHelper).

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