• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ContinueCallback
2
3The **ContinueCallback** module defines the callback function that indicates the result of mission continuation. For details about mission continuation, see [continueMission](js-apis-distributedMissionManager.md#distributedmissionmanagercontinuemission).
4
5**System capability**: SystemCapability.Ability.AbilityRuntime.Mission
6
7| Name                    | Type      | Readable   | Writable   | Description                 |
8| --------------------- | -------- | ---- | ---- | ------------------ |
9| onContinueDone | function | Yes    | No    | Mission continuation result.     |
10
11**Example**
12
13  ```ts
14  import distributedMissionManager from '@ohos.distributedMissionManager';
15
16  let continueDeviceInfo = {
17    srcDeviceId: '123',
18    dstDeviceId: '456',
19    missionId: 123,
20    wantParam: {
21        'key':'value'
22    }
23  };
24
25  let continueCallback = {
26      onContinueDone(result) {
27          console.log('onContinueDone, result: ' + JSON.stringify(result));
28      }
29  };
30
31  distributedMissionManager.continueMission(continueDeviceInfo, continueCallback, (error) => {
32    if (error.code != 0) {
33        console.error('continueMission failed, cause: ' + JSON.stringify(error))
34    }
35    console.info('continueMission finished')
36  })
37  ```
38