• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License"),
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/**
17 * @file
18 * @kit AbilityKit
19 */
20
21import { AsyncCallback } from './@ohos.base';
22import { MissionInfo as _MissionInfo } from './application/MissionInfo';
23import { MissionListener as _MissionListener } from './application/MissionListener';
24import { MissionSnapshot as _MissionSnapshot } from './application/MissionSnapshot';
25import StartOptions from './@ohos.app.ability.StartOptions';
26
27/**
28 * This module provides the capability to manage abilities and obtaining system task information.
29 *
30 * @namespace missionManager
31 * @syscap SystemCapability.Ability.AbilityRuntime.Mission
32 * @systemapi
33 * @since 9
34 */
35declare namespace missionManager {
36  /**
37   * Register the missionListener to ams.
38   *
39   * @permission ohos.permission.MANAGE_MISSIONS
40   * @param { 'mission' } type - mission.
41   * @param { MissionListener } listener - Indicates the MissionListener to be registered.
42   * @returns { number } Returns the index number of the MissionListener.
43   * @throws { BusinessError } 201 - Permission denied.
44   * @throws { BusinessError } 202 - Not system application.
45   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
46   * 2. Incorrect parameter types; 3. Parameter verification failed.
47   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
48   * @systemapi
49   * @since 9
50   */
51  function on(type: 'mission', listener: MissionListener): number;
52
53  /**
54   * Unregister the missionListener to ams.
55   *
56   * @permission ohos.permission.MANAGE_MISSIONS
57   * @param { 'mission' } type - mission.
58   * @param { number } listenerId - Indicates the listener id to be unregistered.
59   * @param { AsyncCallback<void> } callback - The callback of off.
60   * @throws { BusinessError } 201 - Permission denied.
61   * @throws { BusinessError } 202 - Not system application.
62   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
63   * 2. Incorrect parameter types; 3. Parameter verification failed.
64   * @throws { BusinessError } 16300002 - The specified mission listener does not exist.
65   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
66   * @systemapi
67   * @since 9
68   */
69  function off(type: 'mission', listenerId: number, callback: AsyncCallback<void>): void;
70
71  /**
72   * Unregister the missionListener to ams.
73   *
74   * @permission ohos.permission.MANAGE_MISSIONS
75   * @param { 'mission' } type - mission.
76   * @param { number } listenerId - Indicates the listener id to be unregistered.
77   * @returns { Promise<void> } The promise returned by the function.
78   * @throws { BusinessError } 201 - Permission denied.
79   * @throws { BusinessError } 202 - Not system application.
80   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
81   * 2. Incorrect parameter types; 3. Parameter verification failed.
82   * @throws { BusinessError } 16300002 - The specified mission listener does not exist.
83   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
84   * @systemapi
85   * @since 9
86   */
87  function off(type: 'mission', listenerId: number): Promise<void>;
88
89  /**
90   * Get the missionInfo with the given missionId.
91   *
92   * @permission ohos.permission.MANAGE_MISSIONS
93   * @param { string } deviceId - Indicates the device to be queried.
94   * @param { number } missionId - Indicates mission id to be queried.
95   * @param { AsyncCallback<MissionInfo> } callback - The callback is used to return the MissionInfo of the given id.
96   * @throws { BusinessError } 201 - Permission denied.
97   * @throws { BusinessError } 202 - Not system application.
98   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
99   * 2. Incorrect parameter types; 3. Parameter verification failed.
100   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
101   * @systemapi
102   * @since 9
103   */
104  function getMissionInfo(deviceId: string, missionId: number, callback: AsyncCallback<MissionInfo>): void;
105
106  /**
107   * Get the missionInfo with the given missionId.
108   *
109   * @permission ohos.permission.MANAGE_MISSIONS
110   * @param { string } deviceId - Indicates the device to be queried.
111   * @param { number } missionId - Indicates mission id to be queried.
112   * @returns { Promise<MissionInfo> } Returns the MissionInfo of the given id.
113   * @throws { BusinessError } 201 - Permission denied.
114   * @throws { BusinessError } 202 - Not system application.
115   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
116   * 2. Incorrect parameter types; 3. Parameter verification failed.
117   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
118   * @systemapi
119   * @since 9
120   */
121  function getMissionInfo(deviceId: string, missionId: number): Promise<MissionInfo>;
122
123  /**
124   * Get missionInfos in the given deviceId with maximum number of numMax.
125   *
126   * @permission ohos.permission.MANAGE_MISSIONS
127   * @param { string } deviceId - Indicates the device to be queried.
128   * @param { number } numMax - Indicates the maximum number of returned missions.
129   * @param { AsyncCallback<Array<MissionInfo>> } callback - The callback is used to return the array of the MissionInfo.
130   * @throws { BusinessError } 201 - Permission denied.
131   * @throws { BusinessError } 202 - Not system application.
132   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
133   * 2. Incorrect parameter types; 3. Parameter verification failed.
134   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
135   * @systemapi
136   * @since 9
137   */
138  function getMissionInfos(deviceId: string, numMax: number, callback: AsyncCallback<Array<MissionInfo>>): void;
139
140  /**
141   * Get missionInfos in the given deviceId with maximum number of numMax.
142   *
143   * @permission ohos.permission.MANAGE_MISSIONS
144   * @param { string } deviceId - Indicates the device to be queried.
145   * @param { number } numMax - Indicates the maximum number of returned missions.
146   * @returns { Promise<Array<MissionInfo>> } Returns the array of the MissionInfo.
147   * @throws { BusinessError } 201 - Permission denied.
148   * @throws { BusinessError } 202 - Not system application.
149   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
150   * 2. Incorrect parameter types; 3. Parameter verification failed.
151   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
152   * @systemapi
153   * @since 9
154   */
155  function getMissionInfos(deviceId: string, numMax: number): Promise<Array<MissionInfo>>;
156
157  /**
158   * Get the mission snapshot with the given missionId.
159   *
160   * @permission ohos.permission.MANAGE_MISSIONS
161   * @param { string } deviceId - Indicates the device to be queried.
162   * @param { number } missionId - Indicates mission id to be queried.
163   * @param { AsyncCallback<MissionSnapshot> } callback - The callback is used to return the MissionSnapshot of
164   *                                                      the given id.
165   * @throws { BusinessError } 201 - Permission denied.
166   * @throws { BusinessError } 202 - Not system application.
167   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
168   * 2. Incorrect parameter types; 3. Parameter verification failed.
169   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
170   * @systemapi
171   * @since 9
172   */
173  function getMissionSnapShot(deviceId: string, missionId: number, callback: AsyncCallback<MissionSnapshot>): void;
174
175  /**
176   * Get the mission snapshot with the given missionId.
177   *
178   * @permission ohos.permission.MANAGE_MISSIONS
179   * @param { string } deviceId - Indicates the device to be queried.
180   * @param { number } missionId - Indicates mission id to be queried.
181   * @returns { Promise<MissionSnapshot> } Returns the MissionSnapshot of the given id.
182   * @throws { BusinessError } 201 - Permission denied.
183   * @throws { BusinessError } 202 - Not system application.
184   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
185   * 2. Incorrect parameter types; 3. Parameter verification failed.
186   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
187   * @systemapi
188   * @since 9
189   */
190  function getMissionSnapShot(deviceId: string, missionId: number): Promise<MissionSnapshot>;
191
192  /**
193   * Get the mission low resolution snapshot with the given missionId.
194   *
195   * @permission ohos.permission.MANAGE_MISSIONS
196   * @param { string } deviceId - Indicates the device to be queried.
197   * @param { number } missionId - Indicates mission id to be queried.
198   * @param { AsyncCallback<MissionSnapshot> } callback - The callback is used to return the MissionSnapshot of
199   *                                                      the given id.
200   * @throws { BusinessError } 201 - Permission denied.
201   * @throws { BusinessError } 202 - Not system application.
202   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
203   * 2. Incorrect parameter types; 3. Parameter verification failed.
204   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
205   * @systemapi
206   * @since 9
207   */
208  function getLowResolutionMissionSnapShot(
209    deviceId: string,
210    missionId: number,
211    callback: AsyncCallback<MissionSnapshot>
212  ): void;
213
214  /**
215   * Get the mission low resolution snapshot with the given missionId.
216   *
217   * @permission ohos.permission.MANAGE_MISSIONS
218   * @param { string } deviceId - Indicates the device to be queried.
219   * @param { number } missionId - Indicates mission id to be queried.
220   * @returns { Promise<MissionSnapshot> } Returns the MissionSnapshot of the given id.
221   * @throws { BusinessError } 201 - Permission denied.
222   * @throws { BusinessError } 202 - Not system application.
223   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
224   * 2. Incorrect parameter types; 3. Parameter verification failed.
225   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
226   * @systemapi
227   * @since 9
228   */
229  function getLowResolutionMissionSnapShot(deviceId: string, missionId: number): Promise<MissionSnapshot>;
230
231  /**
232   * Lock the mission.
233   *
234   * @permission ohos.permission.MANAGE_MISSIONS
235   * @param { number } missionId - Indicates mission id to be locked.
236   * @param { AsyncCallback<void> } callback - The callback of lockMission.
237   * @throws { BusinessError } 201 - Permission denied.
238   * @throws { BusinessError } 202 - Not system application.
239   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
240   * 2. Incorrect parameter types; 3. Parameter verification failed.
241   * @throws { BusinessError } 16300001 - Mission not found.
242   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
243   * @systemapi
244   * @since 9
245   */
246  function lockMission(missionId: number, callback: AsyncCallback<void>): void;
247
248  /**
249   * Lock the mission.
250   *
251   * @permission ohos.permission.MANAGE_MISSIONS
252   * @param { number } missionId - Indicates mission id to be locked.
253   * @returns { Promise<void> } The promise returned by the function.
254   * @throws { BusinessError } 201 - Permission denied.
255   * @throws { BusinessError } 202 - Not system application.
256   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
257   * 2. Incorrect parameter types; 3. Parameter verification failed.
258   * @throws { BusinessError } 16300001 - Mission not found.
259   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
260   * @systemapi
261   * @since 9
262   */
263  function lockMission(missionId: number): Promise<void>;
264
265  /**
266   * Unlock the mission.
267   *
268   * @permission ohos.permission.MANAGE_MISSIONS
269   * @param { number } missionId - Indicates mission id to be unlocked.
270   * @param { AsyncCallback<void> } callback - The callback of unlockMission.
271   * @throws { BusinessError } 201 - Permission denied.
272   * @throws { BusinessError } 202 - Not system application.
273   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
274   * 2. Incorrect parameter types; 3. Parameter verification failed.
275   * @throws { BusinessError } 16300001 - Mission not found.
276   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
277   * @systemapi
278   * @since 9
279   */
280  function unlockMission(missionId: number, callback: AsyncCallback<void>): void;
281
282  /**
283   * Unlock the mission.
284   *
285   * @permission ohos.permission.MANAGE_MISSIONS
286   * @param { number } missionId - Indicates mission id to be unlocked.
287   * @returns { Promise<void> } The promise returned by the function.
288   * @throws { BusinessError } 201 - Permission denied.
289   * @throws { BusinessError } 202 - Not system application.
290   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
291   * 2. Incorrect parameter types; 3. Parameter verification failed.
292   * @throws { BusinessError } 16300001 - Mission not found.
293   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
294   * @systemapi
295   * @since 9
296   */
297  function unlockMission(missionId: number): Promise<void>;
298
299  /**
300   * Clear the given mission in the ability manager service.
301   *
302   * @permission ohos.permission.MANAGE_MISSIONS
303   * @param { number } missionId - Indicates mission id to be cleared.
304   * @param { AsyncCallback<void> } callback - The callback of clearMission.
305   * @throws { BusinessError } 201 - Permission denied.
306   * @throws { BusinessError } 202 - Not system application.
307   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
308   * 2. Incorrect parameter types; 3. Parameter verification failed.
309   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
310   * @systemapi
311   * @since 9
312   */
313  function clearMission(missionId: number, callback: AsyncCallback<void>): void;
314
315  /**
316   * Clear the given mission in the ability manager service.
317   *
318   * @permission ohos.permission.MANAGE_MISSIONS
319   * @param { number } missionId - Indicates mission id to be cleared.
320   * @returns { Promise<void> } The promise returned by the function.
321   * @throws { BusinessError } 201 - Permission denied.
322   * @throws { BusinessError } 202 - Not system application.
323   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
324   * 2. Incorrect parameter types; 3. Parameter verification failed.
325   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
326   * @systemapi
327   * @since 9
328   */
329  function clearMission(missionId: number): Promise<void>;
330
331  /**
332   * Clear all missions in the ability manager service.
333   *
334   * @permission ohos.permission.MANAGE_MISSIONS
335   * @param { AsyncCallback<void> } callback - The callback of clearAllMissions.
336   * @throws { BusinessError } 201 - Permission denied.
337   * @throws { BusinessError } 202 - Not system application.
338   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
339   * 2. Incorrect parameter types; 3. Parameter verification failed.
340   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
341   * @systemapi
342   * @since 9
343   */
344  function clearAllMissions(callback: AsyncCallback<void>): void;
345
346  /**
347   * Clear all missions in the ability manager service.
348   *
349   * @permission ohos.permission.MANAGE_MISSIONS
350   * @returns { Promise<void> } The promise returned by the function.
351   * @throws { BusinessError } 201 - Permission denied.
352   * @throws { BusinessError } 202 - Not system application.
353   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
354   * @systemapi
355   * @since 9
356   */
357  function clearAllMissions(): Promise<void>;
358
359  /**
360   * Schedule the given mission to foreground.
361   *
362   * @permission ohos.permission.MANAGE_MISSIONS
363   * @param { number } missionId - Indicates mission id to be moved to foreground.
364   * @param { AsyncCallback<void> } callback - The callback of moveMissionToFront.
365   * @throws { BusinessError } 201 - Permission denied.
366   * @throws { BusinessError } 202 - Not system application.
367   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
368   * 2. Incorrect parameter types; 3. Parameter verification failed.
369   * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.
370   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
371   * @systemapi
372   * @since 9
373   */
374  function moveMissionToFront(missionId: number, callback: AsyncCallback<void>): void;
375
376  /**
377   * Schedule the given mission to foreground.
378   *
379   * @permission ohos.permission.MANAGE_MISSIONS
380   * @param { number } missionId - Indicates mission id to be moved to foreground.
381   * @param { StartOptions } options - Indicates the start options.
382   * @param { AsyncCallback<void> } callback - The callback of moveMissionToFront.
383   * @throws { BusinessError } 201 - Permission denied.
384   * @throws { BusinessError } 202 - Not system application.
385   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
386   * 2. Incorrect parameter types; 3. Parameter verification failed.
387   * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.
388   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
389   * @systemapi
390   * @since 9
391   */
392  function moveMissionToFront(missionId: number, options: StartOptions, callback: AsyncCallback<void>): void;
393
394  /**
395   * Schedule the given mission to foreground.
396   *
397   * @permission ohos.permission.MANAGE_MISSIONS
398   * @param { number } missionId - Indicates mission id to be moved to foreground.
399   * @param { StartOptions } [options] - Indicates the start options.
400   * @returns { Promise<void> } The promise returned by the function.
401   * @throws { BusinessError } 201 - Permission denied.
402   * @throws { BusinessError } 202 - Not system application.
403   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
404   * 2. Incorrect parameter types; 3. Parameter verification failed.
405   * @throws { BusinessError } 16000009 - An ability cannot be started or stopped in Wukong mode.
406   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
407   * @systemapi
408   * @since 9
409   */
410  function moveMissionToFront(missionId: number, options?: StartOptions): Promise<void>;
411
412  /**
413   * Schedule the given missions to foreground.
414   *
415   * @permission ohos.permission.MANAGE_MISSIONS
416   * @param { Array<number> } missionIds - Indicates mission ids to be moved to foreground.
417   * @param { AsyncCallback<void> } callback - The callback of moveMissionsToForeground.
418   * @throws { BusinessError } 201 - Permission denied.
419   * @throws { BusinessError } 202 - Not system application.
420   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
421   * 2. Incorrect parameter types; 3. Parameter verification failed.
422   * @throws { BusinessError } 16000050 - Internal error.
423   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
424   * @systemapi
425   * @since 10
426   */
427  function moveMissionsToForeground(missionIds: Array<number>, callback: AsyncCallback<void>): void;
428
429  /**
430   * Schedule the given missions to foreground.
431   *
432   * @permission ohos.permission.MANAGE_MISSIONS
433   * @param { Array<number> } missionIds - Indicates mission ids to be moved to foreground.
434   * @param { number } topMission - Indicates mission id to be moved to top.
435   * @param { AsyncCallback<void> } callback - The callback of moveMissionsToForeground.
436   * @throws { BusinessError } 201 - Permission denied.
437   * @throws { BusinessError } 202 - Not system application.
438   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
439   * 2. Incorrect parameter types; 3. Parameter verification failed.
440   * @throws { BusinessError } 16000050 - Internal error.
441   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
442   * @systemapi
443   * @since 10
444   */
445  function moveMissionsToForeground(missionIds: Array<number>, topMission: number, callback: AsyncCallback<void>): void;
446
447  /**
448   * Schedule the given missions to foreground.
449   *
450   * @permission ohos.permission.MANAGE_MISSIONS
451   * @param { Array<number> } missionIds - Indicates mission ids to be moved to foreground.
452   * @param { number } topMission - Indicates mission id to be moved to top.
453   * @returns { Promise<void> } The promise returned by the function.
454   * @throws { BusinessError } 201 - Permission denied.
455   * @throws { BusinessError } 202 - Not system application.
456   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
457   * 2. Incorrect parameter types; 3. Parameter verification failed.
458   * @throws { BusinessError } 16000050 - Internal error.
459   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
460   * @systemapi
461   * @since 10
462   */
463  function moveMissionsToForeground(missionIds: Array<number>, topMission?: number): Promise<void>;
464
465  /**
466   * Schedule the given missions to background.
467   *
468   * @permission ohos.permission.MANAGE_MISSIONS
469   * @param { Array<number> } missionIds - Indicates mission ids will be moved to background
470   * @param { AsyncCallback<Array<number>> } callback - The callback of moveMissionsToForeground.
471   * @throws { BusinessError } 201 - Permission denied.
472   * @throws { BusinessError } 202 - Not system application.
473   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
474   * 2. Incorrect parameter types; 3. Parameter verification failed.
475   * @throws { BusinessError } 16000050 - Internal error.
476   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
477   * @systemapi
478   * @since 10
479   */
480  function moveMissionsToBackground(missionIds: Array<number>, callback: AsyncCallback<Array<number>>): void;
481
482  /**
483   * Schedule the given missions to background.
484   *
485   * @permission ohos.permission.MANAGE_MISSIONS
486   * @param { Array<number> } missionIds - Indicates mission ids will be moved to background
487   * @returns { Promise<Array<number>> } - The promise returned by the function.
488   * @throws { BusinessError } 201 - Permission denied.
489   * @throws { BusinessError } 202 - Not system application.
490   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
491   * 2. Incorrect parameter types; 3. Parameter verification failed.
492   * @throws { BusinessError } 16000050 - Internal error.
493   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
494   * @systemapi
495   * @since 10
496   */
497  function moveMissionsToBackground(missionIds: Array<number>): Promise<Array<number>>;
498
499  /**
500   * Mission information corresponding to ability.
501   *
502   * @typedef { _MissionInfo }
503   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
504   * @systemapi
505   * @since 9
506   */
507  export type MissionInfo = _MissionInfo;
508
509  /**
510   * MissionListener registered by app.
511   *
512   * @typedef { _MissionListener }
513   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
514   * @systemapi
515   * @since 9
516   */
517  export type MissionListener = _MissionListener;
518
519  /**
520   * Mission snapshot corresponding to mission.
521   *
522   * @typedef { _MissionSnapshot }
523   * @syscap SystemCapability.Ability.AbilityRuntime.Mission
524   * @systemapi
525   * @since 9
526   */
527  export type MissionSnapshot = _MissionSnapshot;
528}
529
530export default missionManager;
531