提交 f9b89d85 编写于 作者: E ester.zhou

Update docs (16423)

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 c13bab30
......@@ -68,20 +68,20 @@ Describes the target action supported by an accessibility application.
| -------- | -------- |
| click | Clicking.|
| longClick | Long pressing.|
| scrollForward | Scrolling forward.|
| scrollBackward | Scrolling backward.|
| focus | Obtaining focus.|
| clearFocus | Clearing focus.|
| clearSelection | Clearing selection.|
| accessibilityFocus | Obtaining the accessibility focus.|
| clearAccessibilityFocus | Clearing the accessibility focus.|
| cut | Cut.|
| copy | Copy.|
| paste | Paste.|
| select | Select.|
| setText | Setting the text.|
| delete | Delete.|
| setSelection | Setting the selection.|
| scrollForward | Scrolling forward. Not supported currently. |
| scrollBackward | Scrolling backward. Not supported currently. |
| focus | Obtaining focus. Not supported currently. |
| clearFocus | Clearing focus. Not supported currently. |
| clearSelection | Clearing selection. Not supported currently. |
| accessibilityFocus | Obtaining the accessibility focus. |
| clearAccessibilityFocus | Clearing the accessibility focus. |
| cut | Cut. Not supported currently. |
| copy | Copy. Not supported currently. |
| paste | Paste. Not supported currently. |
| select | Select. Not supported currently. |
| setText | Setting the text. Not supported currently. |
| delete | Delete. Not supported currently. |
| setSelection | Setting the selection. Not supported currently. |
## Capability
......@@ -94,7 +94,7 @@ Enumerates the capabilities of an accessibility application.
| retrieve | Capability to retrieve the window content.|
| touchGuide | Capability of touch guide mode.|
| keyEventObserver | Capability to filter key events.|
| zoom | Capability to control the display zoom level.|
| zoom | Capability to control the display zoom level. Not supported currently. |
| gesture | Capability to perform gesture actions.|
## CaptionsFontEdgeType<sup>8+</sup>
......@@ -279,15 +279,15 @@ Describes a GUI change event.
| bundleName | string | Yes| Yes| Target application name.|
| componentType | string | Yes| Yes| Type of the event source component, for example, button or chart.|
| pageId | number | Yes| Yes| Page ID of the event source.|
| description | string | Yes| Yes| Event description.|
| description | string | Yes| Yes| Event description. Not supported currently. |
| triggerAction | [Action](#action) | Yes| Yes| Action that triggers the event.|
| textMoveUnit | [TextMoveUnit](#textmoveunit) | Yes| Yes| Text movement unit.|
| textMoveUnit | [TextMoveUnit](#textmoveunit) | Yes| Yes| Text movement unit. Not supported currently. |
| contents | Array&lt;string&gt; | Yes| Yes| Array of contents.|
| lastContent | string | Yes| Yes| Latest content.|
| beginIndex | number | Yes| Yes| Sequence number of the first item displayed on the page.|
| currentIndex | number | Yes| Yes| Sequence number of the current item.|
| endIndex | number | Yes| Yes| Sequence number of the last item displayed on the page.|
| itemCount | number | Yes| Yes| Total number of items.|
| beginIndex | number | Yes| Yes| Sequence number of the first item displayed on the page. Not supported currently. |
| currentIndex | number | Yes| Yes| Sequence number of the current item. Not supported currently. |
| endIndex | number | Yes| Yes| Sequence number of the last item displayed on the page. Not supported currently. |
| itemCount | number | Yes| Yes| Total number of items. Not supported currently. |
### constructor
......@@ -323,13 +323,13 @@ Enumerates accessibility event types.
| -------- | -------- |
| click | Event of clicking a component.|
| longClick | Event of long-pressing a component.|
| select | Event of selecting a component.|
| focus | Event indicating that the component obtains the focus.|
| textUpdate | Event indicating that the component text has been updated.|
| hoverEnter | Event indicating that the hover enters a component.|
| hoverExit | Event indicating that the hover exits a component.|
| scroll | Event of the scroll view.|
| textSelectionUpdate | Event indicating that the selected text has been updated.|
| select | Event of selecting a component. Not supported currently. |
| focus | Event indicating that the component obtains the focus. Not supported currently. |
| textUpdate | Event indicating that the component text has been updated. Not supported currently. |
| hoverEnter | Event indicating that the hover enters a component. Not supported currently. |
| hoverExit | Event indicating that the hover exits a component. Not supported currently. |
| scroll | Event of the scroll view. Not supported currently. |
| textSelectionUpdate | Event indicating that the selected text has been updated. Not supported currently. |
| accessibilityFocus | Event indicating that the accessibility focus has been obtained.|
| accessibilityFocusClear | Event indicating that the accessibility focus has been cleared.|
......
......@@ -16,9 +16,9 @@ import AccessibilityExtensionAbility from '@ohos.application.AccessibilityExtens
**System capability**: SystemCapability.BarrierFree.Accessibility.Core
| Name | Type| Readable| Writable| Description |
| --------- | -------- | ---- | ---- | ------------------------- |
| context | [AccessibilityExtensionContext](js-apis-inner-application-accessibilityExtensionContext.md) | Yes| No| Context of the accessibility extension ability.|
| Name | Type | Readable | Writable | Description |
| ------- | ---------------------------------------- | ---- | ---- | ------------ |
| 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 |
| --------- | ---------------------------------------- | ---- | ---- | ---------- |
| 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. |
| 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. |
| Name | Type | Readable| Writable| Description |
| --------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ |
| 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. |
## GestureType
......@@ -40,35 +40,35 @@ Enumerates gesture types.
**System capability**: SystemCapability.BarrierFree.Accessibility.Core
| Name | Description |
| ------------- | ------------ |
| left | Left gesture. String type. |
| leftThenRight | Left-then-right gesture. String type. |
| leftThenUp | Left-then-up gesture. String type. |
| leftThenDown | Left-then-down gesture. String type. |
| right | Right gesture. String type. |
| rightThenLeft | Right-then-left gesture. String type. |
| rightThenUp | Right-then-up gesture. String type. |
| rightThenDown | Right-then-down gesture. String type. |
| up | Up gesture. String type. |
| upThenLeft | Up-then-left gesture. String type. |
| upThenRight | Up-then-right gesture. String type. |
| upThenDown | Up-then-down gesture. String type. |
| down | Down gesture. String type. |
| downThenLeft | Down-then-left gesture. String type. |
| downThenRight | Down-then-right gesture. String type. |
| downThenUp | Down-then-up gesture. String type. |
| Name | Description |
| ------------- | ------------------- |
| left | Left gesture. String type. |
| leftThenRight | Left-then-right gesture. String type.|
| leftThenUp | Left-then-up gesture. String type.|
| leftThenDown | Left-then-down gesture. String type.|
| right | Right gesture. String type. |
| rightThenLeft | Right-then-left gesture. String type.|
| rightThenUp | Right-then-up gesture. String type.|
| rightThenDown | Right-then-down gesture. String type.|
| up | Up gesture. String type. |
| upThenLeft | Up-then-left gesture. String type.|
| upThenRight | Up-then-right gesture. String type.|
| upThenDown | Up-then-down gesture. String type.|
| down | Down gesture. String type. |
| downThenLeft | Down-then-left gesture. String type.|
| downThenRight | Down-then-right gesture. String type.|
| downThenUp | Down-then-up gesture. String type.|
## PageUpdateType
Enumerates the page update types.
Enumerates the page update types. This API is not supported currently.
**System capability**: SystemCapability.BarrierFree.Accessibility.Core
| Name | Description |
| ----------------- | --------- |
| pageContentUpdate | Update of the page content. String type. |
| pageStateUpdate | Update of the page status. String type. |
| Name | Description |
| ----------------- | ---------------- |
| pageContentUpdate | Update of the page content. String type.|
| pageStateUpdate | Update of the page status. String type.|
## TouchGuideType
......@@ -76,10 +76,10 @@ Enumerates the touch guide event types.
**System capability**: SystemCapability.BarrierFree.Accessibility.Core
| Name | Description |
| ---------- | ------------ |
| touchBegin | Start of touch in touch guide mode. String type. |
| touchEnd | End of touch in touch guide mode. String type. |
| Name | Description |
| ---------- | ------------------- |
| touchBegin | Start of touch in touch guide mode. String type.|
| touchEnd | End of touch in touch guide mode. String type.|
## AccessibilityExtensionAbility.onConnect
......@@ -127,7 +127,7 @@ Called when an event that matches the specified bundle and event type occurs. In
**Parameters**
| Name | Type | Mandatory | Description |
| Name | Type | Mandatory | Description |
| ----- | ---------------------------------------- | ---- | --------------- |
| event | [AccessibilityEvent](#accessibilityevent) | Yes | Accessibility event. No value is returned.|
......@@ -154,7 +154,7 @@ Called when a physical key is pressed. In this API, you can determine whether to
**Parameters**
| Name | Type | Mandatory | Description |
| Name | Type | Mandatory | Description |
| -------- | ---------------------------------------- | ---- | ----------------------- |
| keyEvent | [KeyEvent](js-apis-keyevent.md#KeyEvent) | Yes | Key event. If **true** is returned, the key is intercepted.|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册