See Also: ISharedPreferences
public interface ISharedPreferences : IJavaObject, IDisposable
Interface for accessing and modifying preference data returned by Context.GetSharedPreferences(String,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 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.
For more information about using SharedPreferences, read the Data Storage developer guide.
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1
The members of Android.Content.ISharedPreferences are listed below.
Checks whether the preferences contains a preference.
Create a new Editor for these preferences, through which you can make modifications to the data in the preferences and atomically commit those changes back to the SharedPreferences object.
Retrieve a boolean value from the preferences.
Retrieve a float value from the preferences.
Retrieve an int value from the preferences.
Retrieve a long value from the preferences.
Retrieve a String value from the preferences.
Registers a callback to be invoked when a change happens to a preference.
Unregisters a previous callback.