SwipeGestureRecognizer Properties |
The SwipeGestureRecognizer type exposes the following members.
Name | Description | |
---|---|---|
AllowSimultaneousExecutionIfPlatformSpecificViewsAreDifferent |
Allows simultaneous execution if the platform specific views do no match. Default is true.
(Inherited from GestureRecognizer.) | |
ClearTrackedTouchesOnEndOrFail |
Whether tracked touches are cleared when the gesture ends or fails, default is false. By setting to true, you allow the gesture to
possibly execute again with a different touch even if the original touch it failed on is still on-going. This is a special case,
so be sure to watch for problems if you set this to true, as leaving it false ensures the most correct behavior, especially
with lots of gestures at once.
(Inherited from GestureRecognizer.) | |
CurrentTrackedTouches |
The current tracked touches for the gesture
(Inherited from GestureRecognizer.) | |
CustomData |
Custom data for the gesture that you can attach, or just leave null if you don't need this
This is useful if you want to retrieve this in a callback function, but it is not require
for the gesture to work properly
(Inherited from GestureRecognizer.) | |
DeltaX |
Change in focus x in pixels
(Inherited from GestureRecognizer.) | |
DeltaY |
Change in focus y in pixels
(Inherited from GestureRecognizer.) | |
Direction |
The swipe direction required to recognize the gesture (default is any)
| |
DirectionThreshold |
For set directions, this is the amount that the swipe must be proportionally in that direction
vs the other direction. For example, a swipe down gesture will need to move in the y axis
by this multiplier more versus moving along the x axis. Default is 1.5, which means the swipe
down gesture needs to be 1.5 times greater in the y axis vs. the x axis.
Less than or equal to 1 means any ratio is acceptable.
| |
DistanceX |
The distance (in pixels) the gesture focus has moved from where it started along the x axis
(Inherited from GestureRecognizer.) | |
DistanceY |
The distance (in pixels) the gesture focus has moved from where it started along the y axis
(Inherited from GestureRecognizer.) | |
Enabled |
Whether the gesture is Enabled. Default is true.
(Inherited from GestureRecognizer.) | |
EndDirection |
The direction of the completed swipe gesture, will be Any if unknown
| |
EndMode |
Controls how the swipe gesture ends - see SwipeGestureRecognizerEndMode for more details
| |
FailOnDirectionChange |
Whether to fail if the gesture changes direction mid swipe
| |
FocusX |
Focus x value in pixels (average of all touches)
(Inherited from GestureRecognizer.) | |
FocusY |
Focus y value in pixels (average of all touches)
(Inherited from GestureRecognizer.) | |
IsRestarting |
True if gesture is in process of restarting, false otherwise
(Inherited from GestureRecognizer.) | |
MaximumNumberOfTouchesToTrack |
The maximum number of touches to track. This gesture will never track more touches than this. Default is usually 1 or 2.
Not all gestures will honor values higher than 1.
(Inherited from GestureRecognizer.) | |
MinimumDistanceUnits |
The minimum distance the swipe must travel to be recognized. Default is 1.
| |
MinimumNumberOfTouchesToTrack |
The minimum number of touches to track. This gesture will not start unless this many touches are tracked. Default is usually 1 or 2.
Not all gestures will honor values higher than 1.
(Inherited from GestureRecognizer.) | |
MinimumSpeedUnits |
The minimum units per second the swipe must travel to be recognized. Default is 3.0.
| |
PlatformSpecificView |
A platform specific view object that this gesture can execute in, null if none
(Inherited from GestureRecognizer.) | |
PlatformSpecificViewScale |
The platform specific view scale (default is 1.0). Change this if the view this gesture is attached to is being scaled.
(Inherited from GestureRecognizer.) | |
Pressure |
Average pressure of all tracked touches
(Inherited from GestureRecognizer.) | |
PrevFocusX |
Previous focus x
(Inherited from GestureRecognizer.) | |
PrevFocusY |
Previous focus y
(Inherited from GestureRecognizer.) | |
ReceivedAdditionalTouches |
Whether additional touches were added to the gesture since the last execute state.
(Inherited from GestureRecognizer.) | |
RequireGestureRecognizersToFail |
If this gesture reaches the EndPending state and the specified gestures fail,
this gestures will end. If the specified gesture begins, executes or ends,
then this gesture will immediately fail.
(Inherited from GestureRecognizer.) | |
RequireGestureRecognizerToFail |
Convenience method to add / remove one gesture to require failure on. Set to null to clear all require gestures to fail.
(Inherited from GestureRecognizer.) | |
ResetOnEnd |
Whether the gesture should reset when it ends
(Inherited from GestureRecognizer.) | |
SendBeginExecutingStates |
Whether to send begin and executing states. Default is true. If false, only possible, ended or failed state is sent.
| |
Speed |
The speed of the gesture in pixels using focus
(Inherited from GestureRecognizer.) | |
StartFocusX |
Start focus x value in pixels (average of all touches)
(Inherited from GestureRecognizer.) | |
StartFocusY |
Start focus y value in pixels (average of all touches)
(Inherited from GestureRecognizer.) | |
State |
Get the current gesture recognizer state
(Inherited from GestureRecognizer.) | |
TrackedTouchCountIsWithinRange |
Whether the current number of tracked touches is within the min and max number of touches to track
(Inherited from GestureRecognizer.) | |
VelocityX |
Velocity x in pixels using focus
(Inherited from GestureRecognizer.) | |
VelocityY |
Velocity y in pixels using focus
(Inherited from GestureRecognizer.) |