Android Guides | Samples

Android.Content.ISharedPreferencesEditor

Interface used for modifying values in a ISharedPreferences object.

See Also: ISharedPreferencesEditor

Syntax

[Android.Runtime.Register("android/content/SharedPreferences$Editor", "", "Android.Content.ISharedPreferencesEditorInvoker")]
public interface ISharedPreferencesEditor : IJavaObject, IDisposable

Remarks

Interface used for modifying values in a ISharedPreferences object. All changes you make in an editor are batched, and not copied back to the original ISharedPreferences until you call ISharedPreferencesEditor.Commit or ISharedPreferencesEditor.Apply

[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

The members of Android.Content.ISharedPreferencesEditor are listed below.

Public Methods

Apply()
Commit your preferences changes back from this Editor to the ISharedPreferences object it is editing.
Clear() : ISharedPreferencesEditor
Mark in the editor to remove all values from the preferences.
Commit() : Boolean
Commit your preferences changes back from this Editor to the ISharedPreferences object it is editing.
PutBoolean(String, Boolean) : ISharedPreferencesEditor
Set a boolean value in the preferences editor, to be written back once ISharedPreferencesEditor.Commit or ISharedPreferencesEditor.Apply are called.
PutFloat(String, Single) : ISharedPreferencesEditor
Set a float value in the preferences editor, to be written back once ISharedPreferencesEditor.Commit or ISharedPreferencesEditor.Apply are called.
PutInt(String, Int32) : ISharedPreferencesEditor
Set an int value in the preferences editor, to be written back once ISharedPreferencesEditor.Commit or ISharedPreferencesEditor.Apply are called.
PutLong(String, Int64) : ISharedPreferencesEditor
Set a long value in the preferences editor, to be written back once ISharedPreferencesEditor.Commit or ISharedPreferencesEditor.Apply are called.
PutString(String, String) : ISharedPreferencesEditor
Set a String value in the preferences editor, to be written back once ISharedPreferencesEditor.Commit or ISharedPreferencesEditor.Apply are called.
PutStringSet(String, ICollection<string>) : ISharedPreferencesEditor
Remove(String) : ISharedPreferencesEditor
Mark in the editor that a preference value should be removed, which will be done in the actual preferences once ISharedPreferencesEditor.Commit is called.