Aracılığıyla paylaş


Preference.OnClick Method

Definition

Processes a click on the preference.

[Android.Runtime.Register("onClick", "()V", "GetOnClickHandler")]
protected virtual void OnClick ();
[<Android.Runtime.Register("onClick", "()V", "GetOnClickHandler")>]
abstract member OnClick : unit -> unit
override this.OnClick : unit -> unit
Attributes

Remarks

Processes a click on the preference. This includes saving the value to the SharedPreferences. However, the overridden method should call #callChangeListener(Object) to make sure the client wants to update the preference's state with the new value.

Java documentation for android.preference.Preference.onClick().

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