Udostępnij za pośrednictwem


View.PerformClick Method

Definition

Call this view's OnClickListener, if it is defined.

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

Returns

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

Attributes

Remarks

Call this view's OnClickListener, if it is defined. Performs all normal actions associated with clicking: reporting accessibility event, playing a sound, etc.

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

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