TouchGesturesModule
The TouchGesturesModule
class enables touch gesture detection.
Example
Properties
This module exposes no properties.
Methods
Method
Description
onLongPress
onLongPress(): EventSource onLongPress(object: SceneObjectBase): EventSource onLongPress(options: {object?: SceneObjectBase, normalizeCoordinates?: boolean}): EventSource
Returns an EventSource
, to which you may subscribe, that emits a LongPressGesture
object for each long-press interaction.
When object
is specified, only events for the specified object are emitted.
onPan
onPan(): EventSource onPan(object: SceneObjectBase): EventSource onPan(options: {object?: SceneObjectBase, normalizeCoordinates?: boolean}): EventSource
Returns an EventSource
, to which you may subscribe, that emits a PanGesture
object for each pan interaction.
When object
is specified, only events for the specified object are emitted.
onPinch
onPinch(): EventSource onPinch(object: SceneObjectBase): EventSource onPinch(options: {object?: SceneObjectBase, normalizeCoordinates?: boolean}): EventSource
Returns an EventSource
, to which you may subscribe, that emits a PinchGesture
object for each pinch interaction.
When object
is specified, only events for the specified object are emitted.
onRotate
onRotate(): EventSource onRotate(object: SceneObjectBase): EventSource onRotate(options: {object?: SceneObjectBase, normalizeCoordinates?: boolean}): EventSource
Returns an EventSource
, to which you may subscribe, that emits a RotateGesture
object for each rotate interaction.
When object
is specified, only events for the specified object are emitted.
onTap
onTap(): EventSource onTap(object: SceneObjectBase): EventSource onTap(options: {object?: SceneObjectBase, normalizeCoordinates?: boolean}): EventSource
Returns an EventSource
, to which you may subscribe, that emits a TapGesture
object for each tap interaction.
When object
is specified, only events for the specified object are emitted.
Classes
Class
Description
The Gesture
class encapsulates details of a detected gesture.
The LongPressGesture
class contains the details of a detected long-press gesture.
The PanGesture
class contains the details of a detected pan gesture.
The PinchGesture
class contains the details of a detected pinch gesture.
The RawTouchGesture class encapsulates raw touch data.
The RotateGesture
class contains the details of a detected rotate gesture.
The TapGesture
class contains the details of a detected tap gesture.
Last updated