Enumeration

NSGestureRecognizerState

The current state of the gesture recognizer.

Declaration

typedef enum NSGestureRecognizerState : NSInteger {
    ...
} NSGestureRecognizerState;

Topics

Constants

NSGestureRecognizerStatePossible

The gesture recognizer has not yet recognized its gesture but may be evaluating events. This is the default state.

NSGestureRecognizerStateBegan

The gesture recognizer has recognized a sequence of events as a continuous gesture. It calls its action method at the next cycle of the run loop.

NSGestureRecognizerStateChanged

The gesture recognizer has detected a change to a continuous gesture. It calls its action method at the next cycle of the run loop.

NSGestureRecognizerStateEnded

The gesture recognizer has detected the end of a continuous gesture. It calls its action method at the next cycle of the run loop and resets its state to NSGestureRecognizerStatePossible.

NSGestureRecognizerStateCancelled

The gesture recognizer received events that resulted in the cancellation of a continuous gesture. It calls its action method at the next cycle of the run loop and resets its state to NSGestureRecognizerStatePossible.

NSGestureRecognizerStateFailed

The gesture recognizer failed to recognize its gesture and will not call its action method. The gesture recognizer resets itself to the NSGestureRecognizerStatePossible state.

NSGestureRecognizerStateRecognized

The gesture recognizer successfully recognized its gesture. It calls its action method at the next cycle of the run loop and resets its state to NSGestureRecognizerStatePossible.