GestureState

Gesture state indicates a GestureRecognizer's current state. Accepted values are POSSIBLE, FAILED, RECOGNIZED, BEGAN, CHANGED, CANCELLED, and ENDED.

Entries

Link copied to clipboard

POSSIBLE gesture recognizer state. Gesture recognizers in this state are idle when there is no input event to evaluate, or are evaluating input events to determine whether or not to transition into another state.

Link copied to clipboard

FAILED gesture recognizer state. Gesture recognizers transition to this state from the POSSIBLE state when the gesture cannot be recognized given the current input.

Link copied to clipboard

RECOGNIZED gesture recognizer state. Discrete gesture recognizers transition to this state from the POSSIBLE state when the gesture is recognized.

Link copied to clipboard

BEGAN gesture recognizer state. Continuous gesture recognizers transition to this state from the POSSIBLE state when the gesture is first recognized.

Link copied to clipboard

CHANGED gesture recognizer state. Continuous gesture recognizers transition to this state from the BEGAN state or the CHANGED state, whenever an input event indicates a change in the gesture.

Link copied to clipboard

CANCELLED gesture recognizer state. Continuous gesture recognizers may transition to this state from the BEGAN state or the CHANGED state when the touch events are cancelled.

Link copied to clipboard

ENDED gesture recognizer state. Continuous gesture recognizers transition to this state from either the BEGAN state or the CHANGED state when the current input no longer represents the gesture.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.