Android.App.Activity.GetPreferences Method
Retrieve a Android.Content.ISharedPreferences object for accessing preferences that are private to this activity.

Syntax

[Android.Runtime.Register("getPreferences", "(I)Landroid/content/SharedPreferences;", "GetGetPreferences_IHandler")]
public virtual Android.Content.ISharedPreferences GetPreferences ([Android.Runtime.GeneratedEnum] Android.Content.FileCreationMode mode)

Parameters

mode
Operating mode. Use Android.Content.Context.MODE_PRIVATE for the default operation, Android.Content.Context.MODE_WORLD_READABLE and Android.Content.Context.MODE_WORLD_WRITEABLE to control permissions.

Returns

Documentation for this section has not yet been entered.

Remarks

Retrieve a Android.Content.ISharedPreferences object for accessing preferences that are private to this activity. This simply calls the underlying Android.Content.ContextWrapper.GetSharedPreferences(string, Android.Content.FileCreationMode) method by passing in this activity's class name as the preferences name.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1