Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
3608d2e4
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看板
未验证
提交
3608d2e4
编写于
9月 05, 2023
作者:
N
ningning
提交者:
Gitee
9月 05, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update zh-cn/application-dev/reference/apis/js-apis-update.md.
Signed-off-by:
N
ningning
<
wangningning14@huawei.com
>
上级
254cb742
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
34 addition
and
85 deletion
+34
-85
zh-cn/application-dev/reference/apis/js-apis-update.md
zh-cn/application-dev/reference/apis/js-apis-update.md
+34
-85
未找到文件。
zh-cn/application-dev/reference/apis/js-apis-update.md
浏览文件 @
3608d2e4
...
...
@@ -39,13 +39,6 @@ getOnlineUpdater(upgradeInfo: UpgradeInfo): Updater
| ------------------- | ---- |
|
[
Updater
](
#updater
)
| 升级对象。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
...
...
@@ -79,14 +72,6 @@ getRestorer(): Restorer
| --------------------- | ------ |
|
[
Restorer
](
#restorer
)
| 恢复出厂对象。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
```
ts
...
...
@@ -111,13 +96,6 @@ getLocalUpdater(): LocalUpdater
| ----------------------------- | ------ |
|
[
LocalUpdater
](
#localupdater
)
| 本地升级对象。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
...
...
@@ -153,7 +131,7 @@ checkNewVersion(callback: AsyncCallback\<CheckResult>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -185,7 +163,7 @@ checkNewVersion(): Promise\<CheckResult>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -221,7 +199,7 @@ getNewVersionInfo(callback: AsyncCallback\<NewVersionInfo>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -254,7 +232,7 @@ getNewVersionInfo(): Promise\<NewVersionInfo>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -291,7 +269,7 @@ getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOption
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -342,7 +320,7 @@ getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOption
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -387,7 +365,7 @@ getCurrentVersionInfo(callback: AsyncCallback\<CurrentVersionInfo>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -421,7 +399,7 @@ getCurrentVersionInfo(): Promise\<CurrentVersionInfo>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -458,7 +436,7 @@ getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: A
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -503,7 +481,7 @@ getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise\<A
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -543,7 +521,7 @@ getTaskInfo(callback: AsyncCallback\<TaskInfo>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -575,7 +553,7 @@ getTaskInfo(): Promise\<TaskInfo>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -611,7 +589,7 @@ download(versionDigestInfo: VersionDigestInfo, downloadOptions: DownloadOptions,
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -660,7 +638,7 @@ download(versionDigestInfo: VersionDigestInfo, downloadOptions: DownloadOptions)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -706,7 +684,7 @@ resumeDownload(versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: Resu
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -754,7 +732,7 @@ resumeDownload(versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: Resu
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -799,7 +777,7 @@ pauseDownload(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseD
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -847,7 +825,7 @@ pauseDownload(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseD
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -892,7 +870,7 @@ upgrade(versionDigestInfo: VersionDigestInfo, upgradeOptions: UpgradeOptions, ca
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -940,7 +918,7 @@ upgrade(versionDigestInfo: VersionDigestInfo, upgradeOptions: UpgradeOptions): P
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -985,7 +963,7 @@ clearError(versionDigestInfo: VersionDigestInfo, clearOptions: ClearOptions, cal
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1033,7 +1011,7 @@ clearError(versionDigestInfo: VersionDigestInfo, clearOptions: ClearOptions): Pr
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1076,7 +1054,7 @@ getUpgradePolicy(callback: AsyncCallback\<UpgradePolicy>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1109,7 +1087,7 @@ getUpgradePolicy(): Promise\<UpgradePolicy>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1145,7 +1123,7 @@ setUpgradePolicy(policy: UpgradePolicy, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1188,7 +1166,7 @@ setUpgradePolicy(policy: UpgradePolicy): Promise\<void>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1227,7 +1205,7 @@ terminateUpgrade(callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1259,7 +1237,7 @@ terminateUpgrade(): Promise\<void>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1286,13 +1264,6 @@ on(eventClassifyInfo: EventClassifyInfo, taskCallback: UpgradeTaskCallback): voi
| eventClassifyInfo |
[
EventClassifyInfo
](
#eventclassifyinfo
)
| 是 | 事件信息。 |
| taskCallback |
[
UpgradeTaskCallback
](
#upgradetaskcallback
)
| 是 | 事件回调。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
...
...
@@ -1321,14 +1292,6 @@ off(eventClassifyInfo: EventClassifyInfo, taskCallback?: UpgradeTaskCallback): v
| eventClassifyInfo |
[
EventClassifyInfo
](
#eventclassifyinfo
)
| 是 | 事件信息。 |
| taskCallback |
[
UpgradeTaskCallback
](
#upgradetaskcallback
)
| 否 | 事件回调。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
```
ts
...
...
@@ -1366,7 +1329,7 @@ factoryReset(callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1398,7 +1361,7 @@ factoryReset(): Promise\<void>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1436,7 +1399,7 @@ verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string, callback: Asyn
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1480,7 +1443,7 @@ verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string): Promise\<void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1518,7 +1481,7 @@ applyNewVersion(upgradeFiles: Array<[UpgradeFile](#upgradefile)>, callback: Asyn
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1555,7 +1518,7 @@ applyNewVersion(upgradeFiles: Array<[UpgradeFile](#upgradefile)>): Promise\<void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1585,13 +1548,6 @@ on(eventClassifyInfo: EventClassifyInfo, taskCallback: UpgradeTaskCallback): voi
| eventClassifyInfo |
[
EventClassifyInfo
](
#eventclassifyinfo
)
| 是 | 事件信息。 |
| taskCallback |
[
UpgradeTaskCallback
](
#upgradetaskcallback
)
| 是 | 事件回调。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
...
...
@@ -1622,13 +1578,6 @@ off(eventClassifyInfo: EventClassifyInfo, taskCallback?: UpgradeTaskCallback): v
| eventClassifyInfo |
[
EventClassifyInfo
](
#eventclassifyinfo
)
| 是 | 事件信息。 |
| taskCallback |
[
UpgradeTaskCallback
](
#upgradetaskcallback
)
| 否 | 事件回调。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录