ISharedPreferencesEditor ISharedPreferencesEditor Interface

Definition

Interface used for modifying values in a ISharedPreferences object.

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

Remarks

Android platform documentation

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.

Methods

Apply() Apply()

Commit your preferences changes back from this Editor to the ISharedPreferences object it is editing.

Clear() Clear()

Mark in the editor to remove all values from the preferences.

Commit() Commit()

Commit your preferences changes back from this Editor to the ISharedPreferences object it is editing.

PutBoolean(String, Boolean) PutBoolean(String, Boolean)

Set a boolean value in the preferences editor, to be written back once Commit() or Apply() are called.

PutFloat(String, Single) PutFloat(String, Single)

Set a float value in the preferences editor, to be written back once Commit() or Apply() are called.

PutInt(String, Int32) PutInt(String, Int32)

Set an int value in the preferences editor, to be written back once Commit() or Apply() are called.

PutLong(String, Int64) PutLong(String, Int64)

Set a long value in the preferences editor, to be written back once Commit() or Apply() are called.

PutString(String, String) PutString(String, String)

Set a String value in the preferences editor, to be written back once Commit() or Apply() are called.

PutStringSet(String, ICollection<String>) PutStringSet(String, ICollection<String>)
Remove(String) Remove(String)

Mark in the editor that a preference value should be removed, which will be done in the actual preferences once Commit() is called.

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Applies to