Class GestureConfigTap
Configuration class for the Tap gesture.
public sealed class GestureConfigTap : GestureConfig
- Inheritance
-
GestureConfigTap
- Inherited Members
Remarks
A tap gesture can be composed of 1 or more fingers.
Constructors
GestureConfigTap()
Create a default Tap gesture configuration for single touch and single finger detection.
public GestureConfigTap()
GestureConfigTap(int, int)
Create a default Tap gesture configuration for the given numbers of touches and fingers.
public GestureConfigTap(int numberOfTap, int numberOfFingers)
Parameters
Properties
MaximumDistanceTaps
The value represents the maximum distance that can separate two touches of the same finger during the gesture. By reducing this value, the system will tend to detect multi-touch gesture has several single touch gesture. By increasing this value, the system will tend to regroup distant single touch gestures into a multi-touch gesture.
public float MaximumDistanceTaps { get; set; }
Property Value
Exceptions
- ArgumentOutOfRangeException
The value has to be positive.
- InvalidOperationException
Tried to modify the configuration after it has been frozen by the system.
MaximumPressTime
This value represents the maximum amount of time that the user can stay touching the screen before taking off its finger.
public TimeSpan MaximumPressTime { get; set; }
Property Value
MaximumTimeBetweenTaps
This value represents the maximum interval of time that can separate two touches of a same gesture. By reducing this value, the system will tend to detect multi-touch gesture has several single touch gesture. By increasing this value, the system will tend to regroup distant (in time) single touch gestures into a multi-touch gesture.
public TimeSpan MaximumTimeBetweenTaps { get; set; }
Property Value
RequiredNumberOfTaps
This value represents the required number of successive user touches to trigger the gesture. For example: 1 for single touch, 2 for double touch, and so on...
public int RequiredNumberOfTaps { get; set; }
Property Value
Remarks
This value is strictly positive.
Exceptions
- ArgumentOutOfRangeException
The given value is not greater or equal to 1.
- InvalidOperationException
Tried to modify the configuration after it has been frozen by the system.