View.PerformLongClick Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PerformLongClick(Single, Single) |
Calls this view's OnLongClickListener, if it is defined. |
PerformLongClick() |
Calls this view's OnLongClickListener, if it is defined. |
PerformLongClick(Single, Single)
Calls this view's OnLongClickListener, if it is defined.
[Android.Runtime.Register("performLongClick", "(FF)Z", "GetPerformLongClick_FFHandler", ApiSince=24)]
public virtual bool PerformLongClick (float x, float y);
[<Android.Runtime.Register("performLongClick", "(FF)Z", "GetPerformLongClick_FFHandler", ApiSince=24)>]
abstract member PerformLongClick : single * single -> bool
override this.PerformLongClick : single * single -> bool
Parameters
- x
- Single
x coordinate of the anchoring touch event, or Float#NaN
to disable anchoring
- y
- Single
y coordinate of the anchoring touch event, or Float#NaN
to disable anchoring
Returns
true
if one of the above receivers consumed the event,
false
otherwise
- Attributes
Remarks
Calls this view's OnLongClickListener, if it is defined. Invokes the context menu if the OnLongClickListener did not consume the event, anchoring it to an (x,y) coordinate.
Java documentation for android.view.View.performLongClick(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
PerformLongClick()
Calls this view's OnLongClickListener, if it is defined.
[Android.Runtime.Register("performLongClick", "()Z", "GetPerformLongClickHandler")]
public virtual bool PerformLongClick ();
[<Android.Runtime.Register("performLongClick", "()Z", "GetPerformLongClickHandler")>]
abstract member PerformLongClick : unit -> bool
override this.PerformLongClick : unit -> bool
Returns
true
if one of the above receivers consumed the event,
false
otherwise
- Attributes
Remarks
Calls this view's OnLongClickListener, if it is defined. Invokes the context menu if the OnLongClickListener did not consume the event.
Java documentation for android.view.View.performLongClick()
.
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.