From 475fd0d57e2a45708ea35fb7b1c49cdbb32dc35b Mon Sep 17 00:00:00 2001 From: du-zhihai Date: Wed, 7 Dec 2022 17:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E8=87=B4=E6=80=A7=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: du-zhihai Change-Id: I45915cf290c008454f601feb17b02242c02b8eae --- ...is-continuation-continuationExtraParams.md | 2 +- ...s-apis-continuation-continuationManager.md | 38 +++++-------------- ...js-apis-continuation-continuationResult.md | 2 +- .../apis/js-apis-distributedMissionManager.md | 32 ++++++++++++++-- 4 files changed, 41 insertions(+), 33 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationExtraParams.md b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationExtraParams.md index bc7145c55e..93fe4d352d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationExtraParams.md +++ b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationExtraParams.md @@ -12,7 +12,7 @@ **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.DistributedAbilityManager -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | | deviceType | Array\ | 是 | 是 | 表示设备类型。| | targetBundle | string | 是 | 是 | 表示目标包名。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md index 239575f710..d18cfe272f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationManager.md @@ -171,7 +171,6 @@ registerContinuation(callback: AsyncCallback\): void; | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 401 | The parameter check failed. | | 16600001 | The system ability works abnormally. | | 16600003 | The number of token registration times has reached the upper limit. | @@ -216,7 +215,6 @@ registerContinuation(options: ContinuationExtraParams, callback: AsyncCallback\< | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 401 | The parameter check failed. | | 16600001 | The system ability works abnormally. | | 16600003 | The number of token registration times has reached the upper limit. | @@ -269,7 +267,6 @@ registerContinuation(options?: ContinuationExtraParams): Promise\; | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 401 | The parameter check failed. | | 16600001 | The system ability works abnormally. | | 16600003 | The number of token registration times has reached the upper limit. | @@ -471,7 +468,6 @@ on(type: "deviceSelected", token: number, callback: Callback\): v | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 401 | The parameter check failed. | | 16600001 | The system ability works abnormally. | | 16600002 | The specified token or callback is not registered. | @@ -830,7 +822,6 @@ startContinuationDeviceManager(token: number, options: ContinuationExtraParams, | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 401 | The parameter check failed. | | 16600001 | The system ability works abnormally. | | 16600002 | The specified token or callback is not registered. | @@ -883,7 +874,6 @@ startContinuationDeviceManager(token: number, options?: ContinuationExtraParams) | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 401 | The parameter check failed. | | 16600001 | The system ability works abnormally. | | 16600002 | The specified token or callback is not registered. | @@ -1029,7 +1019,6 @@ updateContinuationState(token: number, deviceId: string, status: DeviceConnectSt | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 401 | The parameter check failed. | | 16600001 | The system ability works abnormally. | | 16600002 | The specified token or callback is not registered. | @@ -1081,7 +1070,6 @@ updateContinuationState(token: number, deviceId: string, status: DeviceConnectSt | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 401 | The parameter check failed. | | 16600001 | The system ability works abnormally. | | 16600002 | The specified token or callback is not registered. | @@ -1212,7 +1200,6 @@ unregisterContinuation(token: number, callback: AsyncCallback\): void; | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 401 | The parameter check failed. | | 16600001 | The system ability works abnormally. | | 16600002 | The specified token or callback is not registered. | @@ -1261,7 +1248,6 @@ unregisterContinuation(token: number): Promise\; | 错误码ID | 错误信息 | | ------- | -------------------------------------------- | -| 401 | The parameter check failed. | | 16600001 | The system ability works abnormally. | | 16600002 | The specified token or callback is not registered. | @@ -1289,14 +1275,12 @@ unregisterContinuation(token: number): Promise\; **系统能力**:SystemCapability.Ability.DistributedAbilityManager -**参数:** - - | 参数名 | 类型 | 值 | 说明 | - | -------- | -------- | -------- | -------- | - | IDLE | number | 0 | 设备连接初始状态。 | - | CONNECTING | number | 1 | 设备连接中状态。 | - | CONNECTED | number | 2 | 设备已连接状态。 | - | DISCONNECTING | number | 3 | 设备断开连接状态。 | +| 名称 | 值 | 说明 | +| -------- | -------- | -------- | +| IDLE | 0 | 设备连接初始状态。 | +| CONNECTING | 1 | 设备连接中状态。 | +| CONNECTED | 2 | 设备已连接状态。 | +| DISCONNECTING | 3 | 设备断开连接状态。 | ## ContinuationMode @@ -1304,9 +1288,7 @@ unregisterContinuation(token: number): Promise\; **系统能力**:SystemCapability.Ability.DistributedAbilityManager -**参数:** - - | 参数名 | 类型 | 值 | 说明 | - | -------- | -------- | -------- | -------- | - | COLLABORATION_SINGLE | number | 0 | 设备选择模块单选模式。 | - | COLLABORATION_MULTIPLE | number | 1 | 设备选择模块多选模式。 | \ No newline at end of file +| 名称 | 值 | 说明 | +| -------- | -------- | -------- | +| COLLABORATION_SINGLE | 0 | 设备选择模块单选模式。 | +| COLLABORATION_MULTIPLE | 1 | 设备选择模块多选模式。 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationResult.md b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationResult.md index f5e3ea54a7..b219a0b162 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationResult.md +++ b/zh-cn/application-dev/reference/apis/js-apis-continuation-continuationResult.md @@ -9,7 +9,7 @@ **系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.DistributedAbilityManager -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | | id | string | 是 | 是 | 表示设备标识。| | type | string | 是 | 是 | 表示设备类型。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributedMissionManager.md b/zh-cn/application-dev/reference/apis/js-apis-distributedMissionManager.md index 589acab75c..341ab12047 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-distributedMissionManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-distributedMissionManager.md @@ -372,6 +372,19 @@ continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback, callba | options | [ContinueCallback](#continuecallback) | 是 | 迁移任务完成回调函数。 | | callback | AsyncCallback<void> | 是 | 执行结果回调函数。 | +**错误码:** + +以下错误码的详细介绍请参见[分布式调度错误码](../errorcodes/errorcode-DistributedSchedule.md)。 + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 16300501 | The system ability work abnormally. | +| 16300502 | Failed to get the missionInfo of the specified missionId. | +| 16300503 | The application is not installed on the remote end and installation-free is not supported. | +| 16300504 | The application is not installed on the remote end but installation-free is supported, try again with freeInstall flag. | +| 16300505 | The operation device must be the device where the application to be continued is located or the target device to be continued. | +| 16300506 | The local continuation task is already in progress. | + **示例:** ```ts @@ -422,6 +435,19 @@ continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback): Promi | ------------------- | ---------------- | | Promise<void> | promise方式返回执行结果。 | +**错误码:** + +以下错误码的详细介绍请参见[分布式调度错误码](../errorcodes/errorcode-DistributedSchedule.md)。 + +| 错误码ID | 错误信息 | +| ------- | -------------------------------------------- | +| 16300501 | The system ability work abnormally. | +| 16300502 | Failed to get the missionInfo of the specified missionId. | +| 16300503 | The application is not installed on the remote end and installation-free is not supported. | +| 16300504 | The application is not installed on the remote end but installation-free is supported, try again with freeInstall flag. | +| 16300505 | The operation device must be the device where the application to be continued is located or the target device to be continued. | +| 16300506 | The local continuation task is already in progress. | + **示例:** ```ts @@ -471,7 +497,7 @@ continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback): Promi **系统能力**:SystemCapability.Ability.AbilityRuntime.Mission -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | ----------- | ------- | ---- | ---- | ----------- | | deviceId | string | 是 | 是 | 表示设备ID。 | | fixConflict | boolean | 是 | 是 | 表示是否存在版本冲突。 | @@ -485,7 +511,7 @@ continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback): Promi **系统能力**:SystemCapability.Ability.AbilityRuntime.Mission -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | ------ | ---- | ---- | ------- | | deviceId | string | 是 | 是 | 表示设备ID。 | @@ -497,7 +523,7 @@ continueMission(parameter: ContinueDeviceInfo, options: ContinueCallback): Promi **系统能力**:SystemCapability.Ability.AbilityRuntime.Mission -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | ------ | ---- | ---- | ------- | | srcDeviceId | string | 是 | 是 | 表示任务迁移源设备ID。 | | dstDeviceId | string | 是 | 是 | 表示任务迁移目标设备ID。 | -- GitLab