| context | [AccessibilityExtensionContext](js-apis-inner-application-accessibilityExtensionContext.md) | Yes | No | Context of the accessibility extension ability.|
## AccessibilityEvent
...
...
@@ -28,11 +28,11 @@ Defines an accessibility event.
### Attributes
| Name | Type | Readable | Writable | Description |
| target | [AccessibilityElement](js-apis-inner-application-accessibilityExtensionContext.md#accessibilityelement9) | Yes | No | Target component where the event occurs.|
| timeStamp | number | Yes | No | Timestamp of the event. |
| eventType | [accessibility.EventType](js-apis-accessibility.md#EventType)\|[accessibility.WindowUpdateType](js-apis-accessibility.md#WindowUpdateType)\|[TouchGuideType](#touchguidetype)\|[GestureType](#gesturetype)\|[PageUpdateType](#pageupdatetype) | Yes | No | Event type.<br>**EventType**: accessibility event type.<br>**WindowUpdateType**: Window update type.<br>**TouchGuideType**: touch guide event type.<br>**GestureType**: gesture type.<br>**PageUpdateType**: page update type, which is not supported currently.|
| target | [AccessibilityElement](js-apis-inner-application-accessibilityExtensionContext.md#accessibilityelement9)| Yes | No | Target component where the event occurs. |
| timeStamp | number | Yes | No | Timestamp of the event. |
| windowId | number | No | Window for which you want to obtain the root element. If this parameter is not specified, it indicates the current active window.|
**Return value**
...
...
@@ -283,8 +283,8 @@ Obtains the root element of a window. This API uses a promise to return the resu
For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md).
| windowId | number | Yes | Window for which you want to obtain the root element. If this parameter is not specified, it indicates the current active window.|
| callback | AsyncCallback<AccessibilityElement> | Yes | Callback used to return the root element.|
| windowId | number | Yes | Window for which you want to obtain the root element. If this parameter is not specified, it indicates the current active window.|
| callback | AsyncCallback<AccessibilityElement> | Yes | Callback used to return the root element. |
**Error codes**
For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md).
| displayId | number | No | ID of the display from which the window information is obtained. If this parameter is not specified, it indicates the default main display.|
| displayId | number | Yes | ID of the display from which the window information is obtained. If this parameter is not specified, it indicates the default main display.|
| callback | AsyncCallback<Array<AccessibilityElement>> | Yes | Callback used to return the window list.|
| displayId | number | Yes | ID of the display from which the window information is obtained. If this parameter is not specified, it indicates the default main display.|
| callback | AsyncCallback<Array<AccessibilityElement>> | Yes | Callback used to return the window list. |
**Error codes**
For details about the error codes, see [Accessibility Error Codes](../errorcodes/errorcode-accessibility.md).