Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
ef9cf85b
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看板
提交
ef9cf85b
编写于
3月 14, 2023
作者:
E
ester.zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update docs (15736)
Signed-off-by:
N
ester.zhou
<
ester.zhou@huawei.com
>
上级
4d775faa
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
29 addition
and
33 deletion
+29
-33
en/application-dev/reference/apis/js-apis-inputmethod-extension-context.md
...v/reference/apis/js-apis-inputmethod-extension-context.md
+3
-3
en/application-dev/reference/apis/js-apis-inputmethod.md
en/application-dev/reference/apis/js-apis-inputmethod.md
+1
-5
en/application-dev/reference/apis/js-apis-inputmethodengine.md
...plication-dev/reference/apis/js-apis-inputmethodengine.md
+25
-25
未找到文件。
en/application-dev/reference/apis/js-apis-inputmethod-extension-context.md
浏览文件 @
ef9cf85b
...
@@ -51,7 +51,7 @@ this.context.destroy((err) => {
...
@@ -51,7 +51,7 @@ this.context.destroy((err) => {
## InputMethodExtensionContext.destroy
## InputMethodExtensionContext.destroy
destroy(): Promise
<void
>
;
destroy(): Promise
\<
void>
;
Terminates this ability. This API uses a promise to return the result.
Terminates this ability. This API uses a promise to return the result.
...
@@ -61,13 +61,13 @@ Terminates this ability. This API uses a promise to return the result.
...
@@ -61,13 +61,13 @@ Terminates this ability. This API uses a promise to return the result.
| Type| Description|
| Type| Description|
| -------- | -------- |
| -------- | -------- |
| Promise
<void
>
;
| Promise that returns no value.|
| Promise
\<
void>
; | Promise that returns no value.|
**Example**
**Example**
```
js
```
js
this
.
context
.
destroy
().
then
(()
=>
{
this
.
context
.
destroy
().
then
(()
=>
{
console
.
log
(
'
Succeed in destroying context.
'
);
console
.
log
(
'
Succeed
ed
in destroying context.
'
);
}).
catch
((
error
)
=>
{
}).
catch
((
error
)
=>
{
console
.
log
(
'
Failed to destroy context:
'
+
JSON
.
stringify
(
error
));
console
.
log
(
'
Failed to destroy context:
'
+
JSON
.
stringify
(
error
));
});
});
...
...
en/application-dev/reference/apis/js-apis-inputmethod.md
浏览文件 @
ef9cf85b
...
@@ -884,7 +884,7 @@ inputMethodController.off('selectByRange');
...
@@ -884,7 +884,7 @@ inputMethodController.off('selectByRange');
### on('selectByMovement')<sup>10+</sup>
### on('selectByMovement')<sup>10+</sup>
on(type: 'selectByMovement', callback: Callback
<
Range
>
): void
on(type: 'selectByMovement', callback: Callback
<
Movement
>
): void
Enables listening for the selection-by-cursor-movement event. This API uses an asynchronous callback to return the result.
Enables listening for the selection-by-cursor-movement event. This API uses an asynchronous callback to return the result.
...
@@ -1235,8 +1235,6 @@ showOptionalInputMethods(callback: AsyncCallback<boolean>): void
...
@@ -1235,8 +1235,6 @@ showOptionalInputMethods(callback: AsyncCallback<boolean>): void
Displays a dialog box for selecting an input method. This API uses an asynchronous callback to return the result.
Displays a dialog box for selecting an input method. This API uses an asynchronous callback to return the result.
**Required permissions**
: ohos.permission.CONNECT_IME_ABILITY (available only to system applications)
**System capability**
: SystemCapability.MiscServices.InputMethodFramework
**System capability**
: SystemCapability.MiscServices.InputMethodFramework
**Parameters**
**Parameters**
...
@@ -1275,8 +1273,6 @@ showOptionalInputMethods(): Promise<boolean>
...
@@ -1275,8 +1273,6 @@ showOptionalInputMethods(): Promise<boolean>
Displays a dialog box for selecting an input method. This API uses a promise to return the result.
Displays a dialog box for selecting an input method. This API uses a promise to return the result.
**Required permissions**
: ohos.permission.CONNECT_IME_ABILITY (available only to system applications)
**System capability**
: SystemCapability.MiscServices.InputMethodFramework
**System capability**
: SystemCapability.MiscServices.InputMethodFramework
**Return value**
**Return value**
...
...
en/application-dev/reference/apis/js-apis-inputmethodengine.md
浏览文件 @
ef9cf85b
...
@@ -708,7 +708,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -708,7 +708,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -742,7 +742,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -742,7 +742,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -837,7 +837,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -837,7 +837,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -886,7 +886,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -886,7 +886,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -928,7 +928,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -928,7 +928,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | ------------------------------ |
| -------- | ------------------------------ |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
| 12800006 | Input method controller error. |
| 12800006 | Input method controller error. |
**Example**
**Example**
...
@@ -974,7 +974,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -974,7 +974,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | ------------------------------ |
| -------- | ------------------------------ |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
| 12800006 | Input method controller error. |
| 12800006 | Input method controller error. |
**Example**
**Example**
...
@@ -1013,7 +1013,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1013,7 +1013,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | ------------------------------ |
| -------- | ------------------------------ |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
| 12800006 | Input method controller error. |
| 12800006 | Input method controller error. |
**Example**
**Example**
...
@@ -1059,7 +1059,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1059,7 +1059,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | ------------------------------ |
| -------- | ------------------------------ |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
| 12800006 | Input method controller error. |
| 12800006 | Input method controller error. |
**Example**
**Example**
...
@@ -1099,7 +1099,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1099,7 +1099,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800002 | Input method engine error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1149,7 +1149,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1149,7 +1149,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800002 | Input method engine error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1192,7 +1192,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1192,7 +1192,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800002 | Input method engine error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1242,7 +1242,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1242,7 +1242,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800002 | Input method engine error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1281,7 +1281,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1281,7 +1281,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800002 | Input method engine error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1326,7 +1326,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1326,7 +1326,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800002 | Input method engine error. |
| 12800002 | Input method engine error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1366,7 +1366,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1366,7 +1366,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1401,7 +1401,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1401,7 +1401,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1435,7 +1435,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1435,7 +1435,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1479,7 +1479,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1479,7 +1479,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1517,7 +1517,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1517,7 +1517,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 401 | parameter error. |
| 401 | parameter error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1562,7 +1562,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1562,7 +1562,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 401 | parameter error. |
| 401 | parameter error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1600,7 +1600,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1600,7 +1600,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 401 | parameter error. |
| 401 | parameter error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1620,7 +1620,7 @@ try {
...
@@ -1620,7 +1620,7 @@ try {
### selectByMovement<sup>10+</sup>
### selectByMovement<sup>10+</sup>
selectByMovement(
range: Range
): Promise
<
void
>
selectByMovement(
movement: Movement
): Promise
<
void
>
Selects text based on the specified range. This API uses a promise to return the result.
Selects text based on the specified range. This API uses a promise to return the result.
...
@@ -1645,7 +1645,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1645,7 +1645,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | -------------------------- |
| -------- | -------------------------- |
| 401 | parameter error. |
| 401 | parameter error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
**Example**
**Example**
...
@@ -1682,7 +1682,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1682,7 +1682,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | ------------------------------ |
| -------- | ------------------------------ |
| 401 | parameter error. |
| 401 | parameter error. |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
| 12800006 | Input method controller error. |
| 12800006 | Input method controller error. |
**Example**
**Example**
...
@@ -1717,7 +1717,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
...
@@ -1717,7 +1717,7 @@ For details about the error codes, see [Input Method Framework Error Codes](../e
| Error Code ID| Error Message |
| Error Code ID| Error Message |
| -------- | ------------------------------ |
| -------- | ------------------------------ |
| 12800003 |
I
nput method client error. |
| 12800003 |
i
nput method client error. |
| 12800006 | Input method controller error. |
| 12800006 | Input method controller error. |
**Example**
**Example**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录