Android.Preferences.Preference.SharedPreferences Property
Returns the Android.Content.ISharedPreferences where this Preference can read its value(s).

Syntax

[get: Android.Runtime.Register("getSharedPreferences", "()Landroid/content/SharedPreferences;", "GetGetSharedPreferencesHandler")]
public virtual Android.Content.ISharedPreferences SharedPreferences { get; }

See Also

Preference.Editor

Value

Documentation for this section has not yet been entered.

Remarks

Returns the Android.Content.ISharedPreferences where this Preference can read its value(s). Usually, it's easier to use one of the helper read methods: Preference.GetPersistedBoolean(bool), Preference.GetPersistedFloat(float), Preference.GetPersistedInt(int), Preference.GetPersistedLong(long), Preference.GetPersistedString(string). To save values, see Preference.Editor.

In some cases, writes to the Preference.Editor will not be committed right away and hence not show up in the returned Android.Content.ISharedPreferences, this is intended behavior to improve performance.

[Android Documentation]

Requirements

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