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