SharedPreferencesBackupHelper Constructors

Definition

Overloads

SharedPreferencesBackupHelper(Context, String[])

Construct a helper for backing up and restoring the android.content.SharedPreferences under the given names.

SharedPreferencesBackupHelper(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SharedPreferencesBackupHelper(Context, String[])

Construct a helper for backing up and restoring the android.content.SharedPreferences under the given names.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;[Ljava/lang/String;)V", "")]
public SharedPreferencesBackupHelper (Android.Content.Context? context, params string[]? prefGroups);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;[Ljava/lang/String;)V", "")>]
new Android.App.Backup.SharedPreferencesBackupHelper : Android.Content.Context * string[] -> Android.App.Backup.SharedPreferencesBackupHelper

Parameters

context
Context

The application android.content.Context

prefGroups
String[]

The names of each android.content.SharedPreferences file to back up

Attributes

Remarks

Java documentation for android.app.backup.SharedPreferencesBackupHelper.SharedPreferencesBackupHelper(android.content.Context, java.lang.String).

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

SharedPreferencesBackupHelper(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SharedPreferencesBackupHelper (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Backup.SharedPreferencesBackupHelper : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Backup.SharedPreferencesBackupHelper

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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