Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
8c77bd59
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
8c77bd59
编写于
9月 01, 2022
作者:
O
openharmony_ci
提交者:
Gitee
9月 01, 2022
浏览文件
操作
浏览文件
下载
差异文件
!8881 翻译完成 8691:增加AccessibilityExtensionAbility的context属性说明
Merge pull request !8881 from ester.zhou/TR-8691
上级
3c3878be
89ed2645
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
40 deletion
+11
-40
en/application-dev/reference/apis/js-apis-application-AccessibilityExtensionAbility.md
...apis/js-apis-application-AccessibilityExtensionAbility.md
+11
-40
未找到文件。
en/application-dev/reference/apis/js-apis-application-AccessibilityExtensionAbility.md
浏览文件 @
8c77bd59
...
...
@@ -14,6 +14,14 @@ The **AccessibilityExtensionAbility** module is based on the ExtensionAbility fr
import
AccessibilityExtensionAbility
from
'
@ohos.application.AccessibilityExtensionAbility
'
```
## Attributes
**System capability**
: SystemCapability.BarrierFree.Accessibility.Core
| Name | Type | Readable | Writable | Description |
| --------- | -------- | ---- | ---- | ------------------------- |
| context |
[
AccessibilityExtensionContext
](
js-apis-accessibility-extension-context.md
)
| Yes | No | Context of the accessibility extension ability. |
## AccessibilityEvent
Defines an accessibility event.
...
...
@@ -24,7 +32,7 @@ Defines an accessibility event.
| Name | Type | Readable | Writable | Description |
| --------- | ---------------------------------------- | ---- | ---- | ---------- |
| eventType |
[
EventType
](
js-apis-accessibility.md#
EventType
)
\|
[
WindowUpdateType
](
js-apis-accessibility.md#WindowUpdateType
)
\|
[
TouchGuideType
](
touchguidetype
)
\|
[
GestureType
](
gesturetype
)
\|
[
PageUpdateType
](
pageupdatetype
)
| Yes | No | Event type. |
| eventType |
[
EventType
](
js-apis-accessibility.md#
eventtype
)
\|
[
WindowUpdateType
](
js-apis-accessibility.md#windowupdatetype
)
\|
[
TouchGuideType
](
#touchguidetype
)
\|
[
GestureType
](
#gesturetype
)
\|
[
PageUpdateType
](
#
pageupdatetype
)
| Yes | No | Event type. |
| target | AccessibilityElement | Yes | No | Target component where the event occurs.|
| timeStamp | number | Yes | No | Timestamp of the event. |
...
...
@@ -41,24 +49,6 @@ Defines a gesture path.
| points | Array
<
[GesturePoint](gesturepoint)
>
| Yes | Yes | An array of gesture touch points. |
| durationTime | number | Yes | Yes | Total time consumed by the gesture.|
### constructor
constructor(durationTime: number)
A constructor used to create a
**GesturePath**
object.
**Parameters**
| Name | Type | Mandatory | Description |
| ------------ | ------ | ---- | ------ |
| durationTime | number | Yes | Total time consumed by the gesture.|
**Example**
```
typescript
let
gesturePath
=
new
GesturePath
(
100
);
```
## GesturePoint
Defines a gesture touch point.
...
...
@@ -72,25 +62,6 @@ Defines a gesture touch point.
| positionX | number | Yes | Yes | X-coordinate of the touch point.|
| positionY | number | Yes | Yes | Y-coordinate of the touch point.|
### constructor
constructor(positionX: number, positionY: number)
A constructor used to create a
**GesturePoint**
object.
**Parameters**
| Name | Type | Mandatory | Description |
| --------- | ------ | ---- | ------- |
| positionX | number | Yes | X-coordinate of the touch point.|
| positionY | number | Yes | Y-coordinate of the touch point.|
**Example**
```
typescript
let
gesturePoint
=
new
GesturePoint
(
100
,
200
);
```
## GestureType
Enumerates gesture types.
...
...
@@ -190,7 +161,7 @@ Called when an event that matches the specified bundle and event type occurs. In
| Name | Type | Mandatory | Description |
| ----- | ---------------------------------------- | ---- | --------------- |
| event |
[
AccessibilityEvent
](
accessibilityevent
)
| Yes | Accessibility event. No value is returned.|
| event |
[
AccessibilityEvent
](
#
accessibilityevent
)
| Yes | Accessibility event. No value is returned.|
**Example**
...
...
@@ -215,7 +186,7 @@ Called when a physical key is pressed. In this API, you can determine whether to
| Name | Type | Mandatory | Description |
| -------- | ---------------------------------------- | ---- | ----------------------- |
| keyEvent |
[
KeyEvent
](
js-apis-
inputeventcli
ent.md#KeyEvent
)
| Yes | Key event. If
**true**
is returned, the key is intercepted.|
| keyEvent |
[
KeyEvent
](
js-apis-
keyev
ent.md#KeyEvent
)
| Yes | Key event. If
**true**
is returned, the key is intercepted.|
**Example**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录