Gesture Class

The Gesture class encapsulates details of a detected gesture.

Module:

TouchGestures

Derived Classes:

LongPressGesture
PanGesture
PinchGestureRotateGesture
TapGesture

Usage

const TouchGestures = require('TouchGestures');

Properties

PropertyDescription

state

(get) state: StringSignal (set) (Not Available) Specifies a StringSignal representing the current gesture state. The value is a member of the Gesture.State enum.

type

(get) type: Gesture.Type (set) (Not Available)

Specifies a Gesture.Type enum value representing the type of gesture detected.

To use this property, enable pre-release APIs in your project manifest.

Methods

This class exposes no methods.

Remarks

The gesture can be one of five subtypes, determined by the value of the Type property.

Gesture Type ValueGesture Type Class

LONG_PRESS

LongPressGesture Class

PAN

PanGesture Class

PINCH

PinchGesture Class

ROTATE

RotateGesture Class

TAP

TapGesture Class