Freigeben über


Preference.CallChangeListener(Object) Method

Definition

Call this method after the user changes the preference, but before the internal state is set.

[Android.Runtime.Register("callChangeListener", "(Ljava/lang/Object;)Z", "GetCallChangeListener_Ljava_lang_Object_Handler")]
protected virtual bool CallChangeListener (Java.Lang.Object? newValue);
[<Android.Runtime.Register("callChangeListener", "(Ljava/lang/Object;)Z", "GetCallChangeListener_Ljava_lang_Object_Handler")>]
abstract member CallChangeListener : Java.Lang.Object -> bool
override this.CallChangeListener : Java.Lang.Object -> bool

Parameters

newValue
Object

The new value of this Preference.

Returns

True if the user value should be set as the preference value (and persisted).

Attributes

Remarks

Call this method after the user changes the preference, but before the internal state is set. This allows the client to ignore the user value.

Java documentation for android.preference.Preference.callChangeListener(java.lang.Object).

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