1e41f4b71Sopenharmony_ci# @ohos.accessibility.GesturePath (Gesture Path) 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe **GesturePath** module provides APIs for creating gesture path information required for an accessibility application to inject gestures. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **NOTE** 6e41f4b71Sopenharmony_ci> 7e41f4b71Sopenharmony_ci> - The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci## Modules to Import 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci```ts 12e41f4b71Sopenharmony_ciimport { GesturePath } from '@kit.AccessibilityKit'; 13e41f4b71Sopenharmony_ci``` 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci## GesturePath 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ciDefines a gesture path. 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci### Properties 22e41f4b71Sopenharmony_ci 23e41f4b71Sopenharmony_ci| Name | Type | Readable | Writable | Description | 24e41f4b71Sopenharmony_ci| ------------ |---------------------------------------------------------------------------------| ---- | ---- | ------ | 25e41f4b71Sopenharmony_ci| points | Array<[GesturePoint](js-apis-accessibility-GesturePoint.md#gesturepoint)> | Yes | Yes | Gesture touch point. | 26e41f4b71Sopenharmony_ci| durationTime | number | Yes | Yes | Total gesture duration, in milliseconds.| 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci### constructor<sup>(deprecated)</sup> 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ciconstructor(durationTime: number); 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ciA constructor used to create a **Highlights** album instance. 33e41f4b71Sopenharmony_ci 34e41f4b71Sopenharmony_ci> **NOTE** 35e41f4b71Sopenharmony_ci> 36e41f4b71Sopenharmony_ci> This API is deprecated since API version 12. 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BarrierFree.Accessibility.Core 39e41f4b71Sopenharmony_ci 40e41f4b71Sopenharmony_ci**Parameters** 41e41f4b71Sopenharmony_ci 42e41f4b71Sopenharmony_ci| Name| Type| Mandatory| Description| 43e41f4b71Sopenharmony_ci| -------- | -------- | -------- | -------- | 44e41f4b71Sopenharmony_ci| durationTime | number | Yes| Total gesture duration, in milliseconds.| 45e41f4b71Sopenharmony_ci 46e41f4b71Sopenharmony_ci**Example** 47e41f4b71Sopenharmony_ci 48e41f4b71Sopenharmony_ci```ts 49e41f4b71Sopenharmony_ciimport { GesturePath } from '@kit.AccessibilityKit'; 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_cilet gesturePath = new GesturePath(20); 52e41f4b71Sopenharmony_ci``` 53