未验证 提交 998a33da 编写于 作者: O openharmony_ci 提交者: Gitee

!13477 翻译完成:12246+12867+12648+12624+12668+12486+12508 【仅md格式规范】文档一致性检查修复

Merge pull request !13477 from wusongqing/TR12246
# ContinuationExtraParams
The **ContinuationExtraParams** module provides the extra parameters required by the device selection module in the continuation management entry.
The **ContinuationExtraParams** module provides the filter parameters required by the device selection module in the continuation management entry. These filter parameters can be used as an input parameter of [startContinuationDeviceManager](js-apis-continuation-continuationManager.md#continuationmanagerstartcontinuationdevicemanager9).
> **NOTE**
>
......@@ -15,7 +15,7 @@ Describes the extra parameters required by the device selection module in the co
| Name| Type| Readable| Writable| Description|
| -------- | -------- | -------- | -------- | -------- |
| deviceType | Array\<string> | Yes| Yes| Device type.|
| targetBundle | string | Yes| Yes| Target bundle name.|
| targetBundle | string | Yes| Yes| Name of the target bundle.|
| description | string | Yes| Yes| Device filtering description.|
| filter | any | Yes| Yes| Device filtering parameter.|
| continuationMode | [ContinuationMode](js-apis-continuation-continuationManager.md#continuationmode) | Yes| Yes| Continuation mode.|
......
# continuationManager
# @ohos.continuation.continuationManager (continuationManager)
The **continuationManager** module provides the continuation management entry. You can use the APIs of this module to connect to and cancel the continuation management service, subscribe to and unsubscribe from device connection events, start the device selection module, and update the device connection state.
......
......@@ -6,7 +6,7 @@
## ContinuationResult
Describes the device information returned by the continuation management entry.
Describes the device information returned by the continuation management entry after [on](js-apis-continuation-continuationManager.md#continuationmanagerstartcontinuationdevicemanager9) is called.
**System capability**: SystemCapability.Ability.DistributedAbilityManager
......
# Distributed Mission Management
# @ohos.distributedMissionManager (Distributed Mission Management)
The **distributedMissionManager** module implements system mission management across devices. You can use the APIs provided by this module to register or deregister a mission status listener, start or stop synchronizing a remote mission list, and continue a mission on a remote device.
......@@ -372,6 +372,19 @@ Continues a mission on a remote device. This API uses an asynchronous callback t
| options | [ContinueCallback](#continuecallback) | Yes | Callback invoked when the mission continuation is complete.|
| callback | AsyncCallback&lt;void&gt; | Yes | Callback used to return the result.|
**Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message|
| ------- | -------------------------------------------- |
| 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. |
**Example**
```ts
......@@ -381,11 +394,11 @@ Continues a mission on a remote device. This API uses an asynchronous callback t
missionId: 1,
wantParam: {"key": "value"}
};
function OnContinueDone(resultCode) {
console.log('OnContinueDone resultCode: ' + JSON.stringify(resultCode));
function onContinueDone(resultCode) {
console.log('onContinueDone resultCode: ' + JSON.stringify(resultCode));
};
var options = {
OnContinueDone: OnContinueDone
onContinueDone: onContinueDone
};
try {
distributedMissionManager.continueMission(parameter, options, (error) => {
......@@ -422,6 +435,19 @@ Continues a mission on a remote device. This API uses a promise to return the re
| ------------------- | ---------------- |
| Promise&lt;void&gt; | Promise used to return the result.|
**Error codes**
For details about the error codes, see [Distributed Scheduler Error Codes](../errorcodes/errorcode-DistributedSchedule.md).
| ID| Error Message|
| ------- | -------------------------------------------- |
| 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. |
**Example**
```ts
......@@ -431,11 +457,11 @@ Continues a mission on a remote device. This API uses a promise to return the re
missionId: 1,
wantParam: {"key": "value"}
};
function OnContinueDone(resultCode) {
console.log('OnContinueDone resultCode: ' + JSON.stringify(resultCode));
function onContinueDone(resultCode) {
console.log('onContinueDone resultCode: ' + JSON.stringify(resultCode));
};
var options = {
OnContinueDone: OnContinueDone
onContinueDone: onContinueDone
};
try {
distributedMissionManager.continueMission(parameter, options)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册