• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.accessibility.GesturePoint
2
3 The **GesturePoint** module provides APIs for creating gesture touch point information required for an accessibility application to inject gestures.
4
5> **NOTE**
6>
7> 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.
8
9## Modules to Import
10
11```ts
12import GesturePoint from '@ohos.accessibility.GesturePoint';
13```
14
15## GesturePoint
16
17Defines a gesture touch point.
18
19**System capability**: SystemCapability.BarrierFree.Accessibility.Core
20
21### Attributes
22
23| Name       | Type  | Readable  | Writable  | Description     |
24| --------- | ------ | ---- | ---- | ------- |
25| positionX | number | Yes   | Yes   | X coordinate of the touch point.|
26| positionY | number | Yes   | Yes   | Y coordinate of the touch point.|
27
28### constructor
29
30constructor(positionX: number, positionY: number);
31
32Constructor used to create a **GesturePoint** object.
33
34**System capability**: SystemCapability.BarrierFree.Accessibility.Core
35
36**Parameters**
37
38| Name| Type| Mandatory| Description|
39| -------- | -------- | -------- | -------- |
40| positionX | number | Yes| X coordinate of the touch point.|
41| positionY | number | Yes | Y coordinate of the touch point.|
42
43**Example**
44
45```ts
46let gesturePoint = new GesturePoint.GesturePoint(1, 2);
47```
48