Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
5e15540c
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看板
未验证
提交
5e15540c
编写于
5月 22, 2023
作者:
O
openharmony_ci
提交者:
Gitee
5月 22, 2023
浏览文件
操作
浏览文件
下载
差异文件
!18448 一致性修改
Merge pull request !18448 from ningning/OpenHarmony-3.2-Release
上级
e3b6f799
c1bd76f1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
70 addition
and
70 deletion
+70
-70
zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
+40
-40
zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md
...plication-dev/reference/apis/js-apis-inputmethodengine.md
+9
-9
zh-cn/application-dev/reference/apis/js-apis-request.md
zh-cn/application-dev/reference/apis/js-apis-request.md
+21
-21
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
浏览文件 @
5e15540c
...
...
@@ -60,7 +60,7 @@ getController(): InputMethodController
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 12800006 |
I
nput method controller error. |
| 12800006 |
i
nput method controller error. |
**示例:**
...
...
@@ -88,7 +88,7 @@ getSetting(): InputMethodSetting
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800007 |
I
nput method settings extension error. |
| 12800007 |
i
nput method settings extension error. |
**示例:**
...
...
@@ -119,8 +119,8 @@ switchInputMethod(target: InputMethodProperty, callback: AsyncCallback<boolea
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800005 |
C
onfiguration persisting error. |
| 12800008 |
I
nput method manager service error. |
| 12800005 |
c
onfiguration persisting error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -176,8 +176,8 @@ switchInputMethod(target: InputMethodProperty): Promise<boolean>
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800005 |
C
onfiguration persisting error. |
| 12800008 |
I
nput method manager service error. |
| 12800005 |
c
onfiguration persisting error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -248,8 +248,8 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype, callback: AsyncCallb
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800005 |
C
onfiguration persisting error. |
| 12800008 |
I
nput method manager service error. |
| 12800005 |
c
onfiguration persisting error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -309,8 +309,8 @@ switchCurrentInputMethodSubtype(target: InputMethodSubtype): Promise<boolean&
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800005 |
C
onfiguration persisting error. |
| 12800008 |
I
nput method manager service error. |
| 12800005 |
c
onfiguration persisting error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -384,8 +384,8 @@ switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inp
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800005 |
C
onfiguration persisting error. |
| 12800008 |
I
nput method manager service error. |
| 12800005 |
c
onfiguration persisting error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -438,8 +438,8 @@ switchCurrentInputMethodAndSubtype(inputMethodProperty: InputMethodProperty, inp
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800005 |
C
onfiguration persisting error. |
| 12800008 |
I
nput method manager service error. |
| 12800005 |
c
onfiguration persisting error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -533,8 +533,8 @@ stopInputSession(callback: AsyncCallback<boolean>): void
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800003 |
I
nput method client error. |
| 12800008 |
I
nput method manager service error. |
| 12800003 |
i
nput method client error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -576,8 +576,8 @@ stopInputSession(): Promise<boolean>
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800003 |
I
nput method client error. |
| 12800008 |
I
nput method manager service error. |
| 12800003 |
i
nput method client error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -619,8 +619,8 @@ showSoftKeyboard(callback: AsyncCallback<void>): void
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800003 |
I
nput method client error. |
| 12800008 |
I
nput method manager service error. |
| 12800003 |
i
nput method client error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -656,8 +656,8 @@ showSoftKeyboard(): Promise<void>
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800003 |
I
nput method client error. |
| 12800008 |
I
nput method manager service error. |
| 12800003 |
i
nput method client error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -691,8 +691,8 @@ hideSoftKeyboard(callback: AsyncCallback<void>): void
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800003 |
I
nput method client error. |
| 12800008 |
I
nput method manager service error. |
| 12800003 |
i
nput method client error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -728,8 +728,8 @@ hideSoftKeyboard(): Promise<void>
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800003 |
I
nput method client error. |
| 12800008 |
I
nput method manager service error. |
| 12800003 |
i
nput method client error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -876,8 +876,8 @@ listInputMethodSubtype(inputMethodProperty: InputMethodProperty, callback: Async
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800001 |
P
ackage manager error. |
| 12800008 |
I
nput method manager service error. |
| 12800001 |
p
ackage manager error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -928,8 +928,8 @@ listInputMethodSubtype(inputMethodProperty: InputMethodProperty): Promise<Arr
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800001 |
P
ackage manager error. |
| 12800008 |
I
nput method manager service error. |
| 12800001 |
p
ackage manager error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -972,8 +972,8 @@ listCurrentInputMethodSubtype(callback: AsyncCallback<Array<InputMethodSub
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800001 |
P
ackage manager error. |
| 12800008 |
I
nput method manager service error. |
| 12800001 |
p
ackage manager error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -1011,8 +1011,8 @@ listCurrentInputMethodSubtype(): Promise<Array<InputMethodSubtype>>
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800001 |
P
ackage manager error. |
| 12800008 |
I
nput method manager service error. |
| 12800001 |
p
ackage manager error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -1049,8 +1049,8 @@ getInputMethods(enable: boolean, callback: AsyncCallback<Array<InputMethod
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800001 |
P
ackage manager error. |
| 12800008 |
I
nput method manager service error. |
| 12800001 |
p
ackage manager error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -1088,8 +1088,8 @@ getInputMethods(enable: boolean): Promise<Array<InputMethodProperty>>
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800001 |
P
ackage manager error. |
| 12800008 |
I
nput method manager service error. |
| 12800001 |
p
ackage manager error. |
| 12800008 |
i
nput method manager service error. |
**返回值:**
...
...
@@ -1131,7 +1131,7 @@ showOptionalInputMethods(callback: AsyncCallback<boolean>): void
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800008 |
I
nput method manager service error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
@@ -1169,7 +1169,7 @@ showOptionalInputMethods(): Promise<boolean>
| 错误码ID | 错误信息 |
| -------- | -------------------------------------- |
| 12800008 |
I
nput method manager service error. |
| 12800008 |
i
nput method manager service error. |
**示例:**
...
...
zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md
浏览文件 @
5e15540c
...
...
@@ -975,7 +975,7 @@ getForward(length:number): Promise<string>
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 12800003 | input method client error. |
| 12800006 |
I
nput method controller error. |
| 12800006 |
i
nput method controller error. |
**示例:**
...
...
@@ -1014,7 +1014,7 @@ getBackward(length:number, callback: AsyncCallback<string>): void
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 12800003 | input method client error. |
| 12800006 |
I
nput method controller error. |
| 12800006 |
i
nput method controller error. |
**示例:**
...
...
@@ -1060,7 +1060,7 @@ getBackward(length:number): Promise<string>
| 错误码ID | 错误信息 |
| -------- | ------------------------------ |
| 12800003 | input method client error. |
| 12800006 |
I
nput method controller error. |
| 12800006 |
i
nput method controller error. |
**示例:**
...
...
@@ -1098,7 +1098,7 @@ deleteForward(length:number, callback: AsyncCallback<boolean>): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 |
I
nput method engine error. |
| 12800002 |
i
nput method engine error. |
| 12800003 | input method client error. |
**示例:**
...
...
@@ -1148,7 +1148,7 @@ deleteForward(length:number): Promise<boolean>
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 |
I
nput method engine error. |
| 12800002 |
i
nput method engine error. |
| 12800003 | input method client error. |
**示例:**
...
...
@@ -1191,7 +1191,7 @@ deleteBackward(length:number, callback: AsyncCallback<boolean>): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 |
I
nput method engine error. |
| 12800002 |
i
nput method engine error. |
| 12800003 | input method client error. |
**示例:**
...
...
@@ -1241,7 +1241,7 @@ deleteBackward(length:number): Promise<boolean>
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 |
I
nput method engine error. |
| 12800002 |
i
nput method engine error. |
| 12800003 | input method client error. |
**示例:**
...
...
@@ -1280,7 +1280,7 @@ insertText(text:string, callback: AsyncCallback<boolean>): void
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 |
I
nput method engine error. |
| 12800002 |
i
nput method engine error. |
| 12800003 | input method client error. |
**示例:**
...
...
@@ -1325,7 +1325,7 @@ insertText(text:string): Promise<boolean>
| 错误码ID | 错误信息 |
| -------- | -------------------------- |
| 12800002 |
I
nput method engine error. |
| 12800002 |
i
nput method engine error. |
| 12800003 | input method client error. |
**示例:**
...
...
zh-cn/application-dev/reference/apis/js-apis-request.md
浏览文件 @
5e15540c
...
...
@@ -97,7 +97,7 @@ uploadFile(context: BaseContext, config: UploadConfig): Promise<UploadTask>
| 错误码ID | 错误信息 |
| -------- | -------- |
| 13400002 |
B
ad file path. |
| 13400002 |
b
ad file path. |
**示例:**
...
...
@@ -145,7 +145,7 @@ uploadFile(context: BaseContext, config: UploadConfig, callback: AsyncCallback&l
| 错误码ID | 错误信息 |
| -------- | -------- |
| 13400002 |
B
ad file path. |
| 13400002 |
b
ad file path. |
**示例:**
...
...
@@ -657,9 +657,9 @@ downloadFile(context: BaseContext, config: DownloadConfig): Promise<DownloadT
| 错误码ID | 错误信息 |
| -------- | -------- |
| 13400001 |
F
ile operation error. |
| 13400002 |
B
ad file path. |
| 13400003 |
T
ask manager service error. |
| 13400001 |
f
ile operation error. |
| 13400002 |
b
ad file path. |
| 13400003 |
t
ask manager service error. |
**示例:**
...
...
@@ -700,9 +700,9 @@ downloadFile(context: BaseContext, config: DownloadConfig, callback: AsyncCallba
| 错误码ID | 错误信息 |
| -------- | -------- |
| 13400001 |
F
ile operation error. |
| 13400002 |
B
ad file path. |
| 13400003 |
T
ask manager service error. |
| 13400001 |
f
ile operation error. |
| 13400002 |
b
ad file path. |
| 13400003 |
t
ask manager service error. |
**示例:**
...
...
@@ -1623,17 +1623,17 @@ resume(callback: AsyncCallback<void>): void
**系统能力**
: SystemCapability.MiscServices.Download
| 名称 | 类型 | 说明 |
| -------- | ------ |---------------- |
| downloadId | number | 下载任务ID。 |
| failedReason | number | 下载失败原因,可以是任何
[
下载任务的错误码
](
#下载任务的错误码
)
常量。 |
| fileName | string | 下载的文件名。 |
| filePath | string | 存储文件的URI。 |
| pausedReason | number | 会话暂停的原因,可以是任何
[
下载任务暂停原因
](
#下载任务暂停原因
)
常量。 |
| status | number | 下载状态码,可以是任何
[
下载任务状态码
](
#下载任务状态码
)
常量。 |
| targetURI | string | 下载文件的URI。 |
| downloadTitle | string | 下载任务名称。 |
| downloadTotalBytes | number | 下载的文件的总大小(int
bytes)。 |
| description | string | 待下载任务的描述信息。 |
| downloadedBytes | number | 实时下载大小(int
bytes)。 |
| 名称 | 类型 |
必填 |
说明 |
| -------- | ------ |
------ |
---------------- |
| downloadId | number |
是 |
下载任务ID。 |
| failedReason | number |
是 |
下载失败原因,可以是任何
[
下载任务的错误码
](
#下载任务的错误码
)
常量。 |
| fileName | string |
是 |
下载的文件名。 |
| filePath | string |
是 |
存储文件的URI。 |
| pausedReason | number |
是 |
会话暂停的原因,可以是任何
[
下载任务暂停原因
](
#下载任务暂停原因
)
常量。 |
| status | number |
是 |
下载状态码,可以是任何
[
下载任务状态码
](
#下载任务状态码
)
常量。 |
| targetURI | string |
是 |
下载文件的URI。 |
| downloadTitle | string |
是 |
下载任务名称。 |
| downloadTotalBytes | number |
是 |
下载的文件的总大小(int
bytes)。 |
| description | string |
是 |
待下载任务的描述信息。 |
| downloadedBytes | number |
是 |
实时下载大小(int
bytes)。 |
<!--no_check-->
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录