Class GestureConfigFlick
Configuration class for the Flick gesture.
public sealed class GestureConfigFlick : GestureConfig
- Inheritance
-
GestureConfigFlick
- Inherited Members
Remarks
A Flick gesture can be composed of 1 or more fingers.
Constructors
GestureConfigFlick()
Create a default Flick gesture configuration for one finger free flicking.
public GestureConfigFlick()
GestureConfigFlick(GestureShape)
Create a default gesture configuration for one finger flicking.
public GestureConfigFlick(GestureShape flickShape)
Parameters
flickShape
GestureShapeThe shape of the flicking.
Properties
AllowedErrorMargins
The (x,y) error margins allowed during directional dragging.
public Vector2 AllowedErrorMargins { get; set; }
Property Value
Exceptions
- InvalidOperationException
Tried to modify the configuration after it has been frozen by the system.
- ArgumentOutOfRangeException
The provided x or y value was not positive.
FlickShape
The shape of the flick gesture.
public GestureShape FlickShape { get; set; }
Property Value
Exceptions
- InvalidOperationException
Tried to modify the configuration after it has been frozen by the system.
MinimumAverageSpeed
The minimum average speed of the gesture to be detected as a flick.
public float MinimumAverageSpeed { get; set; }
Property Value
Exceptions
- ArgumentOutOfRangeException
The value must be positive
- InvalidOperationException
Tried to modify the configuration after it has been frozen by the system.
MinimumFlickLength
The minimum distance that the flick gesture has to cross from its origin to be detected has Flick.
public float MinimumFlickLength { get; set; }
Property Value
Exceptions
- InvalidOperationException
Tried to modify the configuration after it has been frozen by the system.