SharedPreferencesBackupHelper Constructors
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.
Overloads
SharedPreferencesBackupHelper(Context, String[]) |
Construct a helper for backing up and restoring the
|
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
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
- 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.