Android.Content.ISharedPreferences
Interface for accessing and modifying preference data returned by Context.GetSharedPreferences(string, Android.Content.FileCreationMode).

See Also: ISharedPreferences Members

Syntax

[Android.Runtime.Register("android/content/SharedPreferences", "", "Android.Content.ISharedPreferencesInvoker")]
public interface ISharedPreferences : Android.Runtime.IJavaObject, IDisposable

Remarks

Interface for accessing and modifying preference data returned by Context.GetSharedPreferences(string, Android.Content.FileCreationMode). For any particular set of preferences, there is a single instance of this class that all clients share. Modifications to the preferences must go through an Android.Content.ISharedPreferencesEditor object to ensure the preference values remain in a consistent state and control when they are committed to storage. Objects that are returned from the various get methods must be treated as immutable by the application.

Note: currently this class does not support use across multiple processes. This will be added later.

Developer Guides

For more information about using SharedPreferences, read the Data Storage developer guide.

See Also

[Android Documentation]

Requirements

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