harmony 鸿蒙@ohos.multimodalInput.gestureEvent (Gesture Event) (System API)
@ohos.multimodalInput.gestureEvent (Gesture Event) (System API)
The gestureEvent module provides gesture events reported by devices.
NOTE
The initial APIs of this module are supported since API version 14. Newly added APIs will be marked with a superscript to indicate their earliest API version.
- The APIs provided by this module are system APIs.
Modules to Import
import { Touch } from '@kit.InputKit';
TouchGestureEvent
Defines a touchscreen gesture event.
System capability: SystemCapability.MultimodalInput.Input.Core
Name | Type | Readable | Writable | Description |
---|---|---|---|---|
action | TouchGestureAction | Yes | No | Enumerates touchscreen gesture types. |
touches | Touch[] | Yes | No | Touch point information. |
TouchGestureAction18+
Enumerates touchscreen gesture types.
System capability: SystemCapability.MultimodalInput.Input.Core
Name | Value | Description |
---|---|---|
SWIPE_DOWN | 0 | Multi-finger downward swipe. |
SWIPE_UP | 1 | Multi-finger upward swipe. |
SWIPE_LEFT | 2 | Multi-finger leftward swipe. |
SWIPE_RIGHT | 3 | Multi-finger rightward swipe. |
PINCH_CLOSED | 4 | Multi-finger pinch closed. |
PINCH_OPENED | 5 | Multi-finger pinch opened. |
GESTURE_END | 6 | Gesture ended. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Input_DeviceListener
harmony 鸿蒙Input_InterceptorEventCallback
harmony 鸿蒙Input_DeviceListener
harmony 鸿蒙Input_InterceptorEventCallback
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦