未验证 提交 cbcf9999 编写于 作者: N ningning 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-update.md.

Signed-off-by: Nningning <wangningning14@huawei.com>
上级 caa07250
......@@ -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.
先完成此消息的编辑!
想要评论请 注册