ISharedPreferences.RegisterOnSharedPreferenceChangeListener Method

Definition

Registers a callback to be invoked when a change happens to a preference.

[Android.Runtime.Register("registerOnSharedPreferenceChangeListener", "(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V", "GetRegisterOnSharedPreferenceChangeListener_Landroid_content_SharedPreferences_OnSharedPreferenceChangeListener_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void RegisterOnSharedPreferenceChangeListener (Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener? listener);
[<Android.Runtime.Register("registerOnSharedPreferenceChangeListener", "(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V", "GetRegisterOnSharedPreferenceChangeListener_Landroid_content_SharedPreferences_OnSharedPreferenceChangeListener_Handler:Android.Content.ISharedPreferencesInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RegisterOnSharedPreferenceChangeListener : Android.Content.ISharedPreferencesOnSharedPreferenceChangeListener -> unit

Parameters

listener
ISharedPreferencesOnSharedPreferenceChangeListener

The callback that will run.

Attributes

Remarks

Java documentation for android.content.SharedPreferences.registerOnSharedPreferenceChangeListener(android.content.OnSharedPreferenceChangeListener).

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.

Applies to

See also