The GesturePath module provides APIs for creating gesture path information required for an accessibility application to inject gestures.
Defines a gesture path.
System capability: SystemCapability.BarrierFree.Accessibility.Core
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| points | Array<GesturePoint> | No | No | Gesture touch point. |
| durationTime | number | No | No | Total gesture duration, in milliseconds. |
constructor(durationTime: number);
Defines a constructor used to create a GesturePath instance.
This API is supported since API version 9 and deprecated since API version 12. Related capabilities are no longer available in the system.
System capability: SystemCapability.BarrierFree.Accessibility.Core
Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| durationTime | number | Yes | Total gesture duration, in milliseconds. |
Example
import { GesturePath } from '@kit.AccessibilityKit';
let gesturePath = new GesturePath(20);