Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
cbcf9999
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看板
未验证
提交
cbcf9999
编写于
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
>
上级
caa07250
变更
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
浏览文件 @
cbcf9999
...
...
@@ -39,13 +39,6 @@ getOnlineUpdater(upgradeInfo: UpgradeInfo): Updater
| ------------------- | ---- |
|
[
Updater
](
#updater
)
| 升级对象。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
...
...
@@ -72,20 +65,12 @@ getRestorer(): Restorer
**系统能力**
:SystemCapability.Update.UpdateService
**返回值:**
| 类型 | 说明 |
| --------------------- | ------ |
|
[
Restorer
](
#restorer
)
| 恢复出厂对象。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
...
...
@@ -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. |
**示例:**
...
...
@@ -223,7 +201,7 @@ getNewVersionInfo(callback: AsyncCallback\<NewVersionInfo>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -256,7 +234,7 @@ getNewVersionInfo(): Promise\<NewVersionInfo>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -293,7 +271,7 @@ getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOption
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -345,7 +323,7 @@ getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOption
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -390,7 +368,7 @@ getCurrentVersionInfo(callback: AsyncCallback\<CurrentVersionInfo>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -424,7 +402,7 @@ getCurrentVersionInfo(): Promise\<CurrentVersionInfo>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -461,7 +439,7 @@ getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: A
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -506,7 +484,7 @@ getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise\<A
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -545,7 +523,7 @@ getTaskInfo(callback: AsyncCallback\<TaskInfo>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -577,7 +555,7 @@ getTaskInfo(): Promise\<TaskInfo>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -613,7 +591,7 @@ download(versionDigestInfo: VersionDigestInfo, downloadOptions: DownloadOptions,
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -662,7 +640,7 @@ download(versionDigestInfo: VersionDigestInfo, downloadOptions: DownloadOptions)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -708,7 +686,7 @@ resumeDownload(versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: Resu
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -756,7 +734,7 @@ resumeDownload(versionDigestInfo: VersionDigestInfo, resumeDownloadOptions: Resu
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -801,7 +779,7 @@ pauseDownload(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseD
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -849,7 +827,7 @@ pauseDownload(versionDigestInfo: VersionDigestInfo, pauseDownloadOptions: PauseD
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -894,7 +872,7 @@ upgrade(versionDigestInfo: VersionDigestInfo, upgradeOptions: UpgradeOptions, ca
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -942,7 +920,7 @@ upgrade(versionDigestInfo: VersionDigestInfo, upgradeOptions: UpgradeOptions): P
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -987,7 +965,7 @@ clearError(versionDigestInfo: VersionDigestInfo, clearOptions: ClearOptions, cal
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1035,7 +1013,7 @@ clearError(versionDigestInfo: VersionDigestInfo, clearOptions: ClearOptions): Pr
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1078,7 +1056,7 @@ getUpgradePolicy(callback: AsyncCallback\<UpgradePolicy>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1111,7 +1089,7 @@ getUpgradePolicy(): Promise\<UpgradePolicy>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1147,7 +1125,7 @@ setUpgradePolicy(policy: UpgradePolicy, callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1190,7 +1168,7 @@ setUpgradePolicy(policy: UpgradePolicy): Promise\<void>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1229,7 +1207,7 @@ terminateUpgrade(callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1261,7 +1239,7 @@ terminateUpgrade(): Promise\<void>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1288,13 +1266,6 @@ on(eventClassifyInfo: EventClassifyInfo, taskCallback: UpgradeTaskCallback): voi
| eventClassifyInfo |
[
EventClassifyInfo
](
#eventclassifyinfo
)
| 是 | 事件信息。 |
| taskCallback |
[
UpgradeTaskCallback
](
#upgradetaskcallback
)
| 是 | 事件回调。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
...
...
@@ -1323,14 +1294,6 @@ off(eventClassifyInfo: EventClassifyInfo, taskCallback?: UpgradeTaskCallback): v
| eventClassifyInfo |
[
EventClassifyInfo
](
#eventclassifyinfo
)
| 是 | 事件信息。 |
| taskCallback |
[
UpgradeTaskCallback
](
#upgradetaskcallback
)
| 否 | 事件回调。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
```
ts
...
...
@@ -1368,7 +1331,7 @@ factoryReset(callback: AsyncCallback\<void>): void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1400,7 +1363,7 @@ factoryReset(): Promise\<void>
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1438,7 +1401,7 @@ verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string, callback: Asyn
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1482,7 +1445,7 @@ verifyUpgradePackage(upgradeFile: UpgradeFile, certsFile: string): Promise\<void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1520,7 +1483,7 @@ applyNewVersion(upgradeFiles: Array<[UpgradeFile](#upgradefile)>, callback: Asyn
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1557,7 +1520,7 @@ applyNewVersion(upgradeFiles: Array<[UpgradeFile](#upgradefile)>): Promise\<void
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 |
BusinessError 11500104:
IPC error. |
| 11500104 | IPC error. |
**示例:**
...
...
@@ -1587,13 +1550,6 @@ on(eventClassifyInfo: EventClassifyInfo, taskCallback: UpgradeTaskCallback): voi
| eventClassifyInfo |
[
EventClassifyInfo
](
#eventclassifyinfo
)
| 是 | 事件信息。 |
| taskCallback |
[
UpgradeTaskCallback
](
#upgradetaskcallback
)
| 是 | 事件回调。 |
**错误码**
:
以下的错误码的详细介绍请参见
[
升级错误码
](
../errorcodes/errorcode-update.md
)
| 错误码ID | 错误信息 |
| ------- | ---------------------------------------------------- |
| 11500104 | BusinessError 11500104: IPC error. |
**示例:**
...
...
@@ -1624,13 +1580,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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录