Udostępnij za pośrednictwem


View.CancelLongPress Method

Definition

Cancels a pending long press.

[Android.Runtime.Register("cancelLongPress", "()V", "GetCancelLongPressHandler")]
public virtual void CancelLongPress ();
[<Android.Runtime.Register("cancelLongPress", "()V", "GetCancelLongPressHandler")>]
abstract member CancelLongPress : unit -> unit
override this.CancelLongPress : unit -> unit
Attributes

Remarks

Cancels a pending long press. Your subclass can use this if you want the context menu to come up if the user presses and holds at the same place, but you don't want it to come up if they press and then move around enough to cause scrolling.

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

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