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

2025-06-16 浏览 (1)

@ohos.multimodalInput.gestureEvent (手势事件)(系统接口)

设备上报的手势事件。

说明:

本模块首批接口从API version 14开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。

  • 本模块接口为系统接口。

导入模块

import { Touch } from '@kit.InputKit';

TouchGestureEvent

触摸屏手势事件。

系统能力:SystemCapability.MultimodalInput.Input.Core

名称类型只读可选说明
actionTouchGestureAction触摸屏手势类型。
touchesTouch[]触摸点信息。

TouchGestureAction18+

触摸屏手势类型。

系统能力:SystemCapability.MultimodalInput.Input.Core

名称说明
SWIPE_DOWN0多指向下滑动。
SWIPE_UP1多指向上滑动。
SWIPE_LEFT2多指向左滑动。
SWIPE_RIGHT3多指向右滑动。
PINCH_CLOSED4多指捏合。
PINCH_OPENED5多指张开。
GESTURE_END6手势结束。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Input Kit(多模输入服务)

harmony 鸿蒙Input_AxisEvent

harmony 鸿蒙Input_DeviceInfo

harmony 鸿蒙Input_DeviceListener

harmony 鸿蒙Input_Hotkey

harmony 鸿蒙Input_InterceptorEventCallback

harmony 鸿蒙Input_InterceptorOptions

harmony 鸿蒙Input_KeyEvent

harmony 鸿蒙Input_KeyState

harmony 鸿蒙Input_MouseEvent

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