设备上报的手势事件。
import { Rotate, Pinch, ThreeFingersSwipe, FourFingersSwipe, ThreeFingersTap, ActionType } from '@kit.InputKit'; 捏合手势事件。
系统能力:SystemCapability.MultimodalInput.Input.Core
| 名称 | 类型 | 只读 | 可选 | 说明 |
|---|---|---|---|---|
| type | ActionType | 否 | 否 | 手势事件类型,包括手势取消、手势开始、手势更新、手势结束。 |
| scale | number | 否 | 否 | 捏合度,取值范围大于等于0。 |
旋转手势事件。
系统能力:SystemCapability.MultimodalInput.Input.Core
| 名称 | 类型 | 只读 | 可选 | 说明 |
|---|---|---|---|---|
| type | ActionType | 否 | 否 | 手势事件类型。如:手势开始、手势更新、手势结束等。 |
| angle | number | 否 | 否 | 旋转角度,单位为度。 |
三指滑动手势事件。
系统能力:SystemCapability.MultimodalInput.Input.Core
| 名称 | 类型 | 只读 | 可选 | 说明 |
|---|---|---|---|---|
| type | ActionType | 否 | 否 | 手势事件类型。如:手势开始、手势更新、手势结束等。 |
| x | number | 否 | 否 | 坐标x,单位为像素(px)。 |
| y | number | 否 | 否 | 坐标y,单位为像素(px)。 |
四指滑动手势事件。
系统能力:SystemCapability.MultimodalInput.Input.Core
| 名称 | 类型 | 只读 | 可选 | 说明 |
|---|---|---|---|---|
| type | ActionType | 否 | 否 | 手势事件类型。如:手势开始、手势更新、手势结束等。 |
| x | number | 否 | 否 | 坐标x,单位为像素(px)。 |
| y | number | 否 | 否 | 坐标y,单位为像素(px)。 |
三指轻点手势事件。
系统能力:SystemCapability.MultimodalInput.Input.Core
| 名称 | 类型 | 只读 | 可选 | 说明 |
|---|---|---|---|---|
| type | ActionType | 否 | 否 | 手势事件类型。如:手势开始、手势更新、手势结束等。 |