未验证 提交 f43ca11d 编写于 作者: O openharmony_ci 提交者: Gitee

!17541 翻译完成 16423:无障碍软件服务开发指南修改

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