Partager via


View.PerformContextClick Method

Definition

Overloads

PerformContextClick()

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

PerformContextClick(Single, Single)

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

PerformContextClick()

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

[Android.Runtime.Register("performContextClick", "()Z", "GetPerformContextClickHandler", ApiSince=23)]
public virtual bool PerformContextClick ();
[<Android.Runtime.Register("performContextClick", "()Z", "GetPerformContextClickHandler", ApiSince=23)>]
abstract member PerformContextClick : unit -> bool
override this.PerformContextClick : unit -> bool

Returns

True if there was an assigned OnContextClickListener that consumed the event, false otherwise.

Attributes

Remarks

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

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

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

PerformContextClick(Single, Single)

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

[Android.Runtime.Register("performContextClick", "(FF)Z", "GetPerformContextClick_FFHandler", ApiSince=24)]
public virtual bool PerformContextClick (float x, float y);
[<Android.Runtime.Register("performContextClick", "(FF)Z", "GetPerformContextClick_FFHandler", ApiSince=24)>]
abstract member PerformContextClick : single * single -> bool
override this.PerformContextClick : single * single -> bool

Parameters

x
Single

the x coordinate of the context click

y
Single

the y coordinate of the context click

Returns

True if there was an assigned OnContextClickListener that consumed the event, false otherwise.

Attributes

Remarks

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

Java documentation for android.view.View.performContextClick(float, float).

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