Udostępnij za pośrednictwem


PreferenceManager.SharedPreferences Property

Definition

Gets a SharedPreferences instance that preferences managed by this will use.

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

Property Value

a SharedPreferences instance pointing to the file that contains the values of preferences that are managed by this PreferenceManager. If a PreferenceDataStore has been set, this method returns null.

Attributes

Remarks

Gets a SharedPreferences instance that preferences managed by this will use.

Java documentation for android.preference.PreferenceManager.getSharedPreferences().

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