Click or drag to resize

GestureRecognizer Methods

The GestureRecognizer type exposes the following members.

Methods
  NameDescription
Public methodAddRequiredGestureRecognizerToFail
Require a gesture to fail in order for this gesture to end
Public methodAllowSimultaneousExecution
Allows the simultaneous execution with other gesture. This links both gestures so this method only needs to be called once on one of the gestures. Pass null to allow simultaneous execution with all gestures.
Public methodAllowSimultaneousExecutionWithAllGestures
Allows simultaneous execution with all gestures
Protected methodAreTrackedTouchesWithinDistance
Determines whether any tracked touches are within the distance of the starting point of each tracked touch.
Public methodBeginGestureRestart
Allows the gesture to restart even if the touches are not lifted. This is only valid when called from the "Ended" state.
Protected methodCalculateFocus(ICollectionGestureTouch)
Calculate the focus of the gesture
Protected methodCalculateFocus(ICollectionGestureTouch, Boolean)
Calculate the focus of the gesture
Public methodDisallowSimultaneousExecution
Disallows the simultaneous execution with other gesture. This unlinks both gestures so this method only needs to be called once on one of the gestures. By default, gesures are not allowed to execute simultaneously, so you only need to call this method if you previously allowed the gestures to execute simultaneously. Pass null to disallow simulatneous execution with all gestures (i.e. you previously called AllowSimultaneousExecution with a null value.
Public methodDisallowSimultaneousExecutionWithAllGestures
Disallows simultaneous execution with all gestures
Public methodDispose
Dispose of the gesture and ensure it is removed from the global list of active gestures
Public methodDistance(Single)
Get the distance of a length, in units
Public methodDistance(Single, Single)
Gets the distance of a vector, in units
Public methodDistanceBetweenPoints
Gets the distance between two points, in units
Public methodEndGestureRestart
Restart the gesture with a set of begin touches
Public methodEquals (Inherited from Object.)
Protected methodFinalize
Finalizer
(Overrides ObjectFinalize.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodIgnoreTouch
Ignore a touch until it is released
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberNumberOfGesturesInProgress
The global total number of gestures in progress
Public methodPointsAreWithinDistance
Determines whether two points are within a specified distance
Public methodProcessTouchesBegan
Call with the touches that began
Public methodProcessTouchesCancelled
Process cancelled touches
Public methodProcessTouchesEnded
Call with the touches that ended
Public methodProcessTouchesMoved
Call with the touches that moved
Public methodRemoveRequiredGestureRecognizerToFail
Remove a gesture needing to fail in order for this gesture to end
Public methodReset
Reset all internal state for the gesture recognizer
Public methodStatic memberRunActionAfterDelay
Run an action on the main thread after a delay
Protected methodSetState
Sets the state of the gesture. Continous gestures should set the executing state every time they change.
Public methodSimulate
Simulate a gesture
Protected methodStateChanged
Called when state changes
Public methodToString
ToString
(Overrides ObjectToString.)
Protected methodTouchesBegan
Call with the touches that began, child class should override
Protected methodTouchesEnded
Call with the touches that ended, child class should override
Protected methodTouchesMoved
Call with the touches that moved, child class should override
Protected methodTrackCurrentTrackedTouchesStartLocations
Track all touches in CurrentTrackedTouches start locations
Protected methodTrackTouches
Begin tracking the specified touch ids
Top
Extension Methods
  NameDescription
Public Extension MethodLog
Log
(Defined by GestureLogger.)
Top
See Also