1# @ohos.multimodalInput.gestureEvent (手势事件) 2 3<!--Kit: Input Kit--> 4<!--Subsystem: MultimodalInput--> 5<!--Owner: @zhaoxueyuan--> 6<!--Designer: @hanruofei--> 7<!--Tester: @Lyuxin--> 8<!--Adviser: @Brilliantry_Rui--> 9 10设备上报的手势事件。 11 12> **说明:** 13> 14> 本模块首批接口从API version 10开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 15 16## 导入模块 17 18```js 19import { Rotate, Pinch, ThreeFingersSwipe, FourFingersSwipe, ActionType } from '@kit.InputKit'; 20``` 21 22## Pinch 23 24捏合事件。 25 26**系统能力**:SystemCapability.MultimodalInput.Input.Core 27 28| 名称 | 类型 | 只读 | 可选 | 说明 | 29| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 30| type | [ActionType](#actiontype) | 否 | 否 | 捏合事件类型。 | 31| scale | number | 否 | 否 | 捏合度,取值范围大于等于0。 | 32 33## Rotate<sup>11+</sup> 34 35旋转事件。 36 37**系统能力**:SystemCapability.MultimodalInput.Input.Core 38 39| 名称 | 类型 | 只读 | 可选 | 说明 | 40| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 41| type | [ActionType](#actiontype) | 否 | 否 | 旋转事件类型。 | 42| angle | number | 否 | 否 | 旋转角度。 | 43 44## ThreeFingersSwipe 45 46三指滑动事件。 47 48**系统能力**:SystemCapability.MultimodalInput.Input.Core 49 50| 名称 | 类型 | 只读 | 可选 | 说明 | 51| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 52| type | [ActionType](#actiontype) | 否 | 否 | 三指滑动事件类型。 | 53| x | number | 否 | 否 | 坐标x。 | 54| y | number | 否 | 否 | 坐标y。 | 55 56## FourFingersSwipe 57 58四指滑动事件。 59 60**系统能力**:SystemCapability.MultimodalInput.Input.Core 61 62| 名称 | 类型 | 只读 | 可选 | 说明 | 63| -------------- | ----------- | ---- | ---- | ---------------------------------------- | 64| type | [ActionType](#actiontype) | 否 | 否 | 四指滑动事件类型。 | 65| x | number | 否 | 否 | 坐标x。 | 66| y | number | 否 | 否 | 坐标y。 | 67 68## ThreeFingersTap<sup>11+</sup> 69 70三指轻点事件。 71 72**系统能力**:SystemCapability.MultimodalInput.Input.Core 73 74| 名称 | 类型 | 只读 | 可选 | 说明 | 75| ------------------ | ------------------------- | ---- | ---- | ---------------- | 76| type | [ActionType](#actiontype) | 否 | 否 | 三指轻点事件类型。 | 77 78## ActionType 79 80手势事件类型。 81 82**系统能力**:SystemCapability.MultimodalInput.Input.Core 83 84| 名称 | 值 | 说明 | 85| ----------- | --- | --------------- | 86| CANCEL | 0 | 取消。 | 87| BEGIN | 1 | 手势开始。 | 88| UPDATE | 2 | 手势更新。 | 89| END | 3 | 手势结束。 | 90