iOS Guides | Samples

MonoTouch.UIKit.UIGestureRecognizerState Enumeration

An enumeration of states for a UIGesturerecognizer.

Syntax

[MonoTouch.ObjCRuntime.Native]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIGestureRecognizerState

Remarks

This describes the state of a UIGestureRecognizer. All of UIGestureRecognizers start in the Possible state. Once one or more touches has been received, the recognizers transition to the Began state. For one-shot patterns (like Tap), this will either transition into the Recognized state or the Failed state. For continuous gestures (like panning, pinching, rotating) the recognizer will transition to the Changed state and emit multiple calls back to the action and finally transition to either the Ended or Cancelled states.

Members

Member NameDescription
BeganTouch object have begun that are recognized as a continuous gesture.
CancelledTouches have cancelled a continuous gesture.
ChangedTouch objects that are part of a continuous gesture have changed.
EndedTouch objects that are part of a continuous gesture have ended.
FailedAn unrecognized multi-touch gesture has occurred.
PossibleThe default state: no gesture is recognized, but the recognizer may be evaluating touch events.
RecognizedA multi-touch has been recognized. The state is changed to UIGestureRecognizerState.Possible.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIGestureRecognizerState are listed below.

See Also: Enum

Public Fields

BeganUIGestureRecognizerState. Touch object have begun that are recognized as a continuous gesture.
CancelledUIGestureRecognizerState. Touches have cancelled a continuous gesture.
ChangedUIGestureRecognizerState. Touch objects that are part of a continuous gesture have changed.
EndedUIGestureRecognizerState. Touch objects that are part of a continuous gesture have ended.
FailedUIGestureRecognizerState. An unrecognized multi-touch gesture has occurred.
PossibleUIGestureRecognizerState. The default state: no gesture is recognized, but the recognizer may be evaluating touch events.
RecognizedUIGestureRecognizerState. A multi-touch has been recognized. The state is changed to UIGestureRecognizerState.Possible.