openharmony 鸿蒙 js-apis-multimodalinput-gestureevent-sys

2025-06-12 浏览 (1)

@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

NameTypeReadableWritableDescription
actionTouchGestureActionYesNoEnumerates touchscreen gesture types.
touchesTouch[]YesNoTouch point information.

TouchGestureAction18+

Enumerates touchscreen gesture types.

System capability: SystemCapability.MultimodalInput.Input.Core

NameValueDescription
SWIPE_DOWN0Multi-finger downward swipe.
SWIPE_UP1Multi-finger upward swipe.
SWIPE_LEFT2Multi-finger leftward swipe.
SWIPE_RIGHT3Multi-finger rightward swipe.
PINCH_CLOSED4Multi-finger pinch closed.
PINCH_OPENED5Multi-finger pinch opened.
GESTURE_END6Gesture ended.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Input Kit

harmony 鸿蒙Input_DeviceListener

harmony 鸿蒙Input_InterceptorEventCallback

harmony 鸿蒙Input_AxisEvent

harmony 鸿蒙Input_DeviceInfo

harmony 鸿蒙Input_DeviceListener

harmony 鸿蒙Input_Hotkey

harmony 鸿蒙Input_InterceptorEventCallback

harmony 鸿蒙Input_InterceptorOptions

harmony 鸿蒙Input_KeyEvent

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/5KYULL