LongPressGestureRecognizer.NumberOfTouchesRequired Property

Definition

Gets or sets the number of touches required for the gesture to be recognized. Default is 1. Only supported on iOS and Mac Catalyst.

public:
 property int NumberOfTouchesRequired { int get(); void set(int value); };
public int NumberOfTouchesRequired { get; set; }
member this.NumberOfTouchesRequired : int with get, set
Public Property NumberOfTouchesRequired As Integer

Property Value

Remarks

On Android and Windows, this property is ignored and the gesture always requires 1 touch.

Applies to