• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-2024 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 { ElementName } from './bundleManager/ElementName';
23/*** if arkts 1.1 */
24import { AbilityResult } from './ability/abilityResult';
25import { Configuration } from './@ohos.app.ability.Configuration';
26import Context from './application/Context';
27import { AbilityRunningInfo as _AbilityRunningInfo } from './application/AbilityRunningInfo';
28import { ExtensionRunningInfo as _ExtensionRunningInfo } from './application/ExtensionRunningInfo';
29import * as _AbilityForegroundStateObserver from './application/AbilityForegroundStateObserver';
30import * as _AbilityStateData from './application/AbilityStateData';
31/*** endif */
32/*** if arkts 1.2 */
33import _AbilityStateData from './application/AbilityStateData';
34/*** endif */
35
36/**
37 * The class of an ability manager.
38 *
39 * @namespace abilityManager
40 * @syscap SystemCapability.Ability.AbilityRuntime.Core
41 * @since 9
42 */
43/**
44 * The class of an ability manager.
45 *
46 * @namespace abilityManager
47 * @syscap SystemCapability.Ability.AbilityRuntime.Core
48 * @atomicservice
49 * @since 20
50 * @arkts 1.1&1.2
51 */
52declare namespace abilityManager {
53  /**
54   * Enum for the ability state.
55   *
56   * @enum { number }
57   * @syscap SystemCapability.Ability.AbilityRuntime.Core
58   * @since 14
59   */
60  export enum AbilityState {
61    /**
62     * Ability is initialized.
63     *
64     * @syscap SystemCapability.Ability.AbilityRuntime.Core
65     * @since 14
66     */
67    INITIAL = 0,
68
69    /**
70     * Ability is in the state of getting focus.
71     *
72     * @syscap SystemCapability.Ability.AbilityRuntime.Core
73     * @since 14
74     */
75    FOCUS = 2,
76
77    /**
78     * Ability is in the foreground state.
79     *
80     * @syscap SystemCapability.Ability.AbilityRuntime.Core
81     * @since 14
82     */
83    FOREGROUND = 9,
84
85    /**
86     * Ability is in the background state.
87     *
88     * @syscap SystemCapability.Ability.AbilityRuntime.Core
89     * @since 14
90     */
91    BACKGROUND = 10,
92
93    /**
94     * Ability is in the process of scheduling at the foreground.
95     *
96     * @syscap SystemCapability.Ability.AbilityRuntime.Core
97     * @since 14
98     */
99    FOREGROUNDING = 11,
100
101    /**
102     * Ability is in the process of scheduling in the background.
103     *
104     * @syscap SystemCapability.Ability.AbilityRuntime.Core
105     * @since 14
106     */
107    BACKGROUNDING = 12
108  }
109
110  /**
111   * Enum for the user status.
112   *
113   * @enum { number }
114   * @syscap SystemCapability.Ability.AbilityRuntime.Core
115   * @systemapi
116   * @stagemodelonly
117   * @since 12
118   */
119  export enum UserStatus {
120    /**
121     * Indicates the status of the operation that the user clicks to terminate.
122     *
123     * @syscap SystemCapability.Ability.AbilityRuntime.Core
124     * @systemapi
125     * @stagemodelonly
126     * @since 12
127     */
128    ASSERT_TERMINATE = 0,
129
130    /**
131     * Indicates the status of the operation that the user clicks to continue.
132     *
133     * @syscap SystemCapability.Ability.AbilityRuntime.Core
134     * @systemapi
135     * @stagemodelonly
136     * @since 12
137     */
138    ASSERT_CONTINUE = 1,
139
140    /**
141     * Indicates the status of the operation that the user clicks to retry.
142     *
143     * @syscap SystemCapability.Ability.AbilityRuntime.Core
144     * @systemapi
145     * @stagemodelonly
146     * @since 12
147     */
148    ASSERT_RETRY = 2
149  }
150
151  /**
152   * The class of an embedded atomic service open rule.
153   *
154   * @typedef AtomicServiceStartupRule
155   * @syscap SystemCapability.Ability.AbilityRuntime.Core
156   * @systemapi
157   * @stagemodelonly
158   * @since 18
159   */
160  export interface AtomicServiceStartupRule {
161    /**
162     * the flag indicated whether openning atomic service is allowed.
163     *
164     * @type { boolean }
165     * @syscap SystemCapability.Ability.AbilityRuntime.Core
166     * @systemapi
167     * @since 18
168     */
169    isOpenAllowed: boolean;
170
171    /**
172     * the flag indicated whether embedded atomic service is allowed.
173     *
174     * @type { boolean }
175     * @syscap SystemCapability.Ability.AbilityRuntime.Core
176     * @systemapi
177     * @since 18
178     */
179    isEmbeddedAllowed: boolean;
180  }
181
182  /**
183   * Register Ability foreground or background state observer.
184   *
185   * @permission ohos.permission.RUNNING_STATE_OBSERVER
186   * @param { 'abilityForegroundState' } type - ability foreground or background state.
187   * @param { AbilityForegroundStateObserver } observer - The ability foreground state observer.
188   * @throws { BusinessError } 201 - Permission denied.
189   * @throws { BusinessError } 202 - Not system application.
190   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
191   * 2. Incorrect parameter types; 3. Parameter verification failed.
192   * @throws { BusinessError } 16000050 - Internal error.
193   * @syscap SystemCapability.Ability.AbilityRuntime.Core
194   * @systemapi
195   * @since 11
196   */
197  function on(type: 'abilityForegroundState', observer: AbilityForegroundStateObserver): void;
198
199  /**
200   * Unregister Ability foreground or background state observer.
201   *
202   * @permission ohos.permission.RUNNING_STATE_OBSERVER
203   * @param { 'abilityForegroundState' } type - ability foreground or background state.
204   * @param { AbilityForegroundStateObserver } [observer] - The ability foreground state observer.
205   * @throws { BusinessError } 201 - Permission denied.
206   * @throws { BusinessError } 202 - Not system application.
207   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
208   * 2. Incorrect parameter types; 3. Parameter verification failed.
209   * @throws { BusinessError } 16000050 - Internal error.
210   * @syscap SystemCapability.Ability.AbilityRuntime.Core
211   * @systemapi
212   * @since 11
213   */
214  function off(type: 'abilityForegroundState', observer?: AbilityForegroundStateObserver): void;
215
216  /**
217   * Updates the configuration by modifying the configuration.
218   *
219   * @permission ohos.permission.UPDATE_CONFIGURATION
220   * @param { Configuration } config - Indicates the new configuration.
221   * @param { AsyncCallback<void> } callback - The callback of updateConfiguration.
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   * @throws { BusinessError } 16000050 - Internal error.
227   * @syscap SystemCapability.Ability.AbilityRuntime.Core
228   * @systemapi
229   * @since 9
230   */
231  function updateConfiguration(config: Configuration, callback: AsyncCallback<void>): void;
232
233  /**
234   * Updates the configuration by modifying the configuration.
235   *
236   * @permission ohos.permission.UPDATE_CONFIGURATION
237   * @param { Configuration } config - Indicates the new configuration.
238   * @returns { Promise<void> } The promise returned by the function.
239   * @throws { BusinessError } 201 - Permission denied.
240   * @throws { BusinessError } 202 - Not system application.
241   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
242   * 2. Incorrect parameter types; 3. Parameter verification failed.
243   * @throws { BusinessError } 16000050 - Internal error.
244   * @syscap SystemCapability.Ability.AbilityRuntime.Core
245   * @systemapi
246   * @since 9
247   */
248  function updateConfiguration(config: Configuration): Promise<void>;
249
250  /**
251   * If you apply for permission, you can obtain information about all abilities. If you do not apply, you can only
252   * obtain information about the current ability.
253   *
254   * @permission ohos.permission.GET_RUNNING_INFO
255   * @returns { Promise<Array<AbilityRunningInfo>> } Returns the array of AbilityRunningInfo.
256   * @throws { BusinessError } 16000050 - Internal error.
257   * @syscap SystemCapability.Ability.AbilityRuntime.Core
258   * @since 14
259   */
260  function getAbilityRunningInfos(): Promise<Array<AbilityRunningInfo>>;
261
262  /**
263   * If you apply for permission, you can obtain information about all abilities. If you do not apply, you can only
264   * obtain information about the current ability.
265   *
266   * @permission ohos.permission.GET_RUNNING_INFO
267   * @param { AsyncCallback<Array<AbilityRunningInfo>> } callback - The callback is used to return the array of
268   *                                                                AbilityRunningInfo.
269   * @throws { BusinessError } 202 - Not system application.
270   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
271   * 2. Incorrect parameter types; 3. Parameter verification failed.
272   * @throws { BusinessError } 16000050 - Internal error.
273   * @syscap SystemCapability.Ability.AbilityRuntime.Core
274   * @systemapi
275   * @since 9
276   */
277  function getAbilityRunningInfos(callback: AsyncCallback<Array<AbilityRunningInfo>>): void;
278
279  /**
280   * If you apply for permission, you can obtain information about all extensions. If you do not apply, you can only
281   * obtain information about the current extension.
282   *
283   * @permission ohos.permission.GET_RUNNING_INFO
284   * @param { number } upperLimit - Get the maximum limit of the number of messages.
285   * @returns { Promise<Array<ExtensionRunningInfo>> } Returns the array of ExtensionRunningInfo.
286   * @throws { BusinessError } 202 - Not system application.
287   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
288   * 2. Incorrect parameter types; 3. Parameter verification failed.
289   * @throws { BusinessError } 16000050 - Internal error.
290   * @syscap SystemCapability.Ability.AbilityRuntime.Core
291   * @systemapi
292   * @since 9
293   */
294  function getExtensionRunningInfos(upperLimit: number): Promise<Array<ExtensionRunningInfo>>;
295
296  /**
297   * If you apply for permission, you can obtain information about all extensions. If you do not apply, you can only
298   * obtain information about the current extension.
299   *
300   * @permission ohos.permission.GET_RUNNING_INFO
301   * @param { number } upperLimit - Get the maximum limit of the number of messages.
302   * @param { AsyncCallback<Array<ExtensionRunningInfo>> } callback - The callback is used to return the array of
303   *                                                                  ExtensionRunningInfo.
304   * @throws { BusinessError } 202 - Not system application.
305   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
306   * 2. Incorrect parameter types; 3. Parameter verification failed.
307   * @throws { BusinessError } 16000050 - Internal error.
308   * @syscap SystemCapability.Ability.AbilityRuntime.Core
309   * @systemapi
310   * @since 9
311   */
312  function getExtensionRunningInfos(upperLimit: number, callback: AsyncCallback<Array<ExtensionRunningInfo>>): void;
313
314  /**
315   * Get the top ability information of the display.
316   *
317   * @returns { Promise<ElementName> } Returns the elementName info of the top ability.
318   * @throws { BusinessError } 202 - Not system application.
319   * @throws { BusinessError } 16000050 - Internal error.
320   * @syscap SystemCapability.Ability.AbilityRuntime.Core
321   * @systemapi
322   * @since arkts {'1.1':'9', '1.2':'20'}
323   * @arkts 1.1&1.2
324   */
325  function getTopAbility(): Promise<ElementName>;
326
327  /**
328   * Get the top ability information of the display.
329   *
330   * @param { AsyncCallback<ElementName> } callback - The callback is used to return elementName info of top ability.
331   * @throws { BusinessError } 202 - Not system application.
332   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
333   * 2. Incorrect parameter types; 3. Parameter verification failed.
334   * @throws { BusinessError } 16000050 - Internal error.
335   * @syscap SystemCapability.Ability.AbilityRuntime.Core
336   * @systemapi
337   * @since arkts {'1.1':'9', '1.2':'20'}
338   * @arkts 1.1&1.2
339   */
340  function getTopAbility(callback: AsyncCallback<ElementName>): void;
341
342  /**
343   * Acquire the shared data from target ability.
344   *
345   * @param { number } missionId - The missionId of target ability.
346   * @param { AsyncCallback<{ [key: string]: Object }> } callback - The callback is used to return the params of sharing
347   *                                                 data and result code.
348   * @throws { BusinessError } 202 - Not system application.
349   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
350   * 2. Incorrect parameter types; 3. Parameter verification failed.
351   * @throws { BusinessError } 16000050 - Internal error.
352   * @syscap SystemCapability.Ability.AbilityRuntime.Core
353   * @systemapi
354   * @since 10
355   */
356  /**
357   * Acquire the shared data from target ability.
358   *
359   * @param { number } missionId - The missionId of target ability.
360   * @param { AsyncCallback<Record<string, Object>> } callback - The callback is used to return the params of sharing
361   *                                                             data and result code.
362   * @throws { BusinessError } 202 - Not system application.
363   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
364   * 2. Incorrect parameter types; 3. Parameter verification failed.
365   * @throws { BusinessError } 16000050 - Internal error.
366   * @syscap SystemCapability.Ability.AbilityRuntime.Core
367   * @systemapi
368   * @since 11
369   */
370  function acquireShareData(missionId: number, callback: AsyncCallback<Record<string, Object>>): void;
371
372  /**
373   * Acquire the shared data from target ability.
374   *
375   * @param { number } missionId - The missionId of target ability.
376   * @returns { Promise<{ [key: string]: Object }> } The promise returned by the function.
377   * @throws { BusinessError } 202 - Not system application.
378   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
379   * 2. Incorrect parameter types; 3. Parameter verification failed.
380   * @throws { BusinessError } 16000050 - Internal error.
381   * @syscap SystemCapability.Ability.AbilityRuntime.Core
382   * @systemapi
383   * @since 10
384   */
385  /**
386   * Acquire the shared data from target ability.
387   *
388   * @param { number } missionId - The missionId of target ability.
389   * @returns { Promise<Record<string, Object>> } The promise returned by the function.
390   * @throws { BusinessError } 202 - Not system application.
391   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
392   * 2. Incorrect parameter types; 3. Parameter verification failed.
393   * @throws { BusinessError } 16000050 - Internal error.
394   * @syscap SystemCapability.Ability.AbilityRuntime.Core
395   * @systemapi
396   * @since 11
397   */
398  function acquireShareData(missionId: number): Promise<Record<string, Object>>;
399
400  /**
401   * Notify the result of save as to target ability.
402   * @param { AbilityResult } parameter - Indicates the result to return.
403   * @param { number } requestCode - Request code defined by the user.
404   * @param { AsyncCallback<void> } callback - The callback of the function.
405   * @throws { BusinessError } 201 - Permission denied.
406   * @throws { BusinessError } 202 - Not system application.
407   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
408   * 2. Incorrect parameter types; 3. Parameter verification failed.
409   * @throws { BusinessError } 16000050 - Internal error.
410   * @syscap SystemCapability.Ability.AbilityRuntime.Core
411   * @systemapi
412   * @StageModelOnly
413   * @since 10
414   */
415  function notifySaveAsResult(parameter: AbilityResult, requestCode: number, callback: AsyncCallback<void>): void;
416
417  /**
418   * Notify the result of save as to target ability.
419   * @param { AbilityResult } parameter - Indicates the result to return.
420   * @param { number } requestCode - Request code defined by the user.
421   * @returns { Promise<void> } The promise returned by the function.
422   * @throws { BusinessError } 201 - Permission denied.
423   * @throws { BusinessError } 202 - Not system application.
424   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
425   * 2. Incorrect parameter types; 3. Parameter verification failed.
426   * @throws { BusinessError } 16000050 - Internal error.
427   * @syscap SystemCapability.Ability.AbilityRuntime.Core
428   * @systemapi
429   * @StageModelOnly
430   * @since 10
431   */
432  function notifySaveAsResult(parameter: AbilityResult, requestCode: number): Promise<void>;
433
434  /**
435   * Get the foreground ui abilities.
436   *
437   * @permission ohos.permission.GET_RUNNING_INFO
438   * @param { AsyncCallback<Array<AbilityStateData>> } callback - The callback is used to return the list of AbilityStateDatas.
439   * @throws { BusinessError } 201 - Permission denied.
440   * @throws { BusinessError } 202 - Not system application.
441   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
442   * 2. Incorrect parameter types; 3. Parameter verification failed.
443   * @throws { BusinessError } 16000050 - Internal error.
444   * @syscap SystemCapability.Ability.AbilityRuntime.Core
445   * @systemapi
446   * @since arkts {'1.1':'11', '1.2':'20'}
447   * @arkts 1.1&1.2
448   */
449  function getForegroundUIAbilities(callback: AsyncCallback<Array<AbilityStateData>>): void;
450
451  /**
452   * Get the foreground ui abilities.
453   *
454   * @permission ohos.permission.GET_RUNNING_INFO
455   * @returns { Promise<Array<AbilityStateData>> } Returns the list of AbilityStateDatas.
456   * @throws { BusinessError } 201 - Permission denied.
457   * @throws { BusinessError } 202 - Not system application.
458   * @throws { BusinessError } 16000050 - Internal error.
459   * @syscap SystemCapability.Ability.AbilityRuntime.Core
460   * @systemapi
461   * @since arkts {'1.1':'11', '1.2':'20'}
462   * @arkts 1.1&1.2
463   */
464  function getForegroundUIAbilities(): Promise<Array<AbilityStateData>>;
465
466  /**
467   * Querying whether to allow embedded startup of atomic service.
468   *
469   * @param { Context } context - The context that initiates the query request.
470   * @param { string } appId - Globally unique identifier of an application, which is allocated by the cloud.
471   * @returns { Promise<boolean> } Returns the result in the form of callback.
472   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
473   * 2. Incorrect parameter types; 3. Parameter verification failed.
474   * @throws { BusinessError } 16000050 - Internal error.
475   * @syscap SystemCapability.Ability.AbilityRuntime.Core
476   * @systemapi
477   * @StageModelOnly
478   * @since 12
479   */
480  function isEmbeddedOpenAllowed(context: Context, appId: string): Promise<boolean>;
481
482  /**
483   * Notifies the application of the assertion debugging result.
484   *
485   * @permission ohos.permission.NOTIFY_DEBUG_ASSERT_RESULT
486   * @param { string } sessionId - Indicates the request ID of AssertFault.
487   * @param { UserStatus } status - Operation status of the user.
488   * @returns { Promise<void> } The promise returned by the function.
489   * @throws { BusinessError } 201 - The application does not have permission to call the interface.
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.Core
495   * @systemapi
496   * @stagemodelonly
497   * @since 12
498   */
499  function notifyDebugAssertResult(sessionId: string, status: UserStatus): Promise<void>;
500
501  /**
502   * Set the enable status for starting and stopping resident processes.
503   * The caller application can only set the resident status of the configured process.
504   *
505   * @param { string } bundleName - The bundle name of the resident process.
506   * @param { boolean } enable - Set resident process enable status.
507   * @returns { Promise<void> } The promise returned by the function.
508   * @throws { BusinessError } 202 - Not a system application.
509   * @throws { BusinessError } 401 - Parameter error. Possible cause: 1.Non empty package name needs to be provided, 2.The second parameter needs to provide a Boolean type setting value.
510   * @throws { BusinessError } 16000050 - Internal error.
511   * @throws { BusinessError } 16200006 - The caller application can only set the resident status of the configured process.
512   * @syscap SystemCapability.Ability.AbilityRuntime.Core
513   * @systemapi
514   * @since 12
515   */
516  function setResidentProcessEnabled(bundleName: string, enable: boolean): Promise<void>;
517
518  /**
519   * Query the rule to open embedded atomic service.
520   *
521   * @param { Context } context - The context that initiates the query request.
522   * @param { string } appId - Globally unique identifier of an application, which is allocated by the cloud.
523   * @returns { Promise<AtomicServiceStartupRule> } Returns the result in the form of callback.
524   * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;
525   * 2. Incorrect parameter types; 3. Parameter verification failed.
526   * @throws { BusinessError } 801 - Capability not supported.
527   * @throws { BusinessError } 16000050 - Internal error.
528   * @syscap SystemCapability.Ability.AbilityRuntime.Core
529   * @systemapi
530   * @stagemodelonly
531   * @since 18
532   */
533  function queryAtomicServiceStartupRule(context: Context, appId: string): Promise<AtomicServiceStartupRule>;
534
535  /**
536   * Restart the current atomic service.
537   *
538   * @param { Context } context - The context that initiates the restart.
539   * @throws { BusinessError } 16000050 - Internal error. Possible causes: 1. Connect to system service failed;
540   * 2.Send restart message to system service failed; 3.System service failed to communicate with dependency module.
541   * @throws { BusinessError } 16000053 - The ability is not on the top of the UI.
542   * @throws { BusinessError } 16000064 - Restart too frequently. Try again at least 3s later.
543   * @throws { BusinessError } 16000086 - The context is not UIAbilityContext.
544   * @throws { BusinessError } 16000090 - The caller is not an atomic service.
545   * @syscap SystemCapability.Ability.AbilityRuntime.Core
546   * @stagemodelonly
547   * @atomicservice
548   * @since 20
549   */
550  function restartSelfAtomicService(context: Context): void;
551
552  /**
553   * The class of an ability running information.
554   *
555   * @typedef { _AbilityRunningInfo }
556   * @syscap SystemCapability.Ability.AbilityRuntime.Core
557   * @since 14
558   */
559  export type AbilityRunningInfo = _AbilityRunningInfo;
560
561  /**
562   * The ability state data.
563   *
564   * @typedef { _AbilityStateData.default }
565   * @syscap SystemCapability.Ability.AbilityRuntime.Core
566   * @since 14
567   */
568  export type AbilityStateData = _AbilityStateData.default;
569
570  /**
571   * The ability state data.
572   *
573   * @typedef { _AbilityStateData }
574   * @syscap SystemCapability.Ability.AbilityRuntime.Core
575   * @since 20
576   * @arkts 1.2
577   */
578  export type AbilityStateData = _AbilityStateData;
579
580
581  /**
582   * The class of an extension running information.
583   *
584   * @typedef { _ExtensionRunningInfo }
585   * @syscap SystemCapability.Ability.AbilityRuntime.Core
586   * @systemapi
587   * @since 9
588   */
589  export type ExtensionRunningInfo = _ExtensionRunningInfo;
590
591  /**
592   * The ability foreground state observer.
593   *
594   * @typedef { _AbilityForegroundStateObserver.default }
595   * @syscap SystemCapability.Ability.AbilityRuntime.Core
596   * @systemapi
597   * @since 11
598   */
599  export type AbilityForegroundStateObserver = _AbilityForegroundStateObserver.default;
600}
601
602export default abilityManager;
603