Udostępnij za pośrednictwem


View.CallOnClick Method

Definition

Directly call any attached OnClickListener.

[Android.Runtime.Register("callOnClick", "()Z", "GetCallOnClickHandler")]
public virtual bool CallOnClick ();
[<Android.Runtime.Register("callOnClick", "()Z", "GetCallOnClickHandler")>]
abstract member CallOnClick : unit -> bool
override this.CallOnClick : unit -> bool

Returns

True there was an assigned OnClickListener that was called, false otherwise is returned.

Attributes

Remarks

Directly call any attached OnClickListener. Unlike #performClick(), this only calls the listener, and does not do any associated clicking actions like reporting an accessibility event.

Java documentation for android.view.View.callOnClick().

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