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

Syntax

[Android.Runtime.Register("commit", "()Z", "GetCommitHandler:Android.Content.ISharedPreferencesEditorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool Commit ()

Returns

Documentation for this section has not yet been entered.

Remarks

Commit your preferences changes back from this Editor to the Android.Content.ISharedPreferences object it is editing. This atomically performs the requested modifications, replacing whatever is currently in the SharedPreferences.

Note that when two editors are modifying preferences at the same time, the last one to call commit wins.

If you don't care about the return value and you're using this from your application's main thread, consider using ISharedPreferencesEditor.Apply instead.

[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