• 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
21/**
22 * The definition of AbilityConstant.
23 *
24 * @namespace AbilityConstant
25 * @syscap SystemCapability.Ability.AbilityRuntime.Core
26 * @stagemodelonly
27 * @since 9
28 */
29/**
30 * The definition of AbilityConstant.
31 *
32 * @namespace AbilityConstant
33 * @syscap SystemCapability.Ability.AbilityRuntime.Core
34 * @stagemodelonly
35 * @crossplatform
36 * @since 10
37 */
38/**
39 * The definition of AbilityConstant.
40 *
41 * @namespace AbilityConstant
42 * @syscap SystemCapability.Ability.AbilityRuntime.Core
43 * @stagemodelonly
44 * @crossplatform
45 * @atomicservice
46 * @since 11
47 */
48declare namespace AbilityConstant {
49  /**
50   * Interface of launch param.
51   *
52   * @typedef LaunchParam
53   * @syscap SystemCapability.Ability.AbilityRuntime.Core
54   * @stagemodelonly
55   * @since 9
56   */
57  /**
58   * Interface of launch param.
59   *
60   * @typedef LaunchParam
61   * @syscap SystemCapability.Ability.AbilityRuntime.Core
62   * @stagemodelonly
63   * @crossplatform
64   * @since 10
65   */
66  /**
67   * Interface of launch param.
68   *
69   * @typedef LaunchParam
70   * @syscap SystemCapability.Ability.AbilityRuntime.Core
71   * @stagemodelonly
72   * @crossplatform
73   * @atomicservice
74   * @since 11
75   */
76  export interface LaunchParam {
77    /**
78     * Indicates launch reason.
79     *
80     * @type { LaunchReason }
81     * @syscap SystemCapability.Ability.AbilityRuntime.Core
82     * @stagemodelonly
83     * @since 9
84     */
85    /**
86     * Indicates launch reason.
87     *
88     * @type { LaunchReason }
89     * @syscap SystemCapability.Ability.AbilityRuntime.Core
90     * @stagemodelonly
91     * @crossplatform
92     * @since 10
93     */
94    /**
95     * Indicates launch reason.
96     *
97     * @type { LaunchReason }
98     * @syscap SystemCapability.Ability.AbilityRuntime.Core
99     * @stagemodelonly
100     * @crossplatform
101     * @atomicservice
102     * @since 11
103     */
104    launchReason: LaunchReason;
105
106    /**
107     * Indicates last exit reason.
108     *
109     * @type { LastExitReason }
110     * @syscap SystemCapability.Ability.AbilityRuntime.Core
111     * @stagemodelonly
112     * @since 9
113     */
114    /**
115     * Indicates last exit reason.
116     *
117     * @type { LastExitReason }
118     * @syscap SystemCapability.Ability.AbilityRuntime.Core
119     * @stagemodelonly
120     * @crossplatform
121     * @since 10
122     */
123    /**
124     * Indicates last exit reason.
125     *
126     * @type { LastExitReason }
127     * @syscap SystemCapability.Ability.AbilityRuntime.Core
128     * @stagemodelonly
129     * @crossplatform
130     * @atomicservice
131     * @since 11
132     */
133    lastExitReason: LastExitReason;
134
135    /**
136     * Indicates last exit detailed reason.
137     *
138     * @type { string }
139     * @syscap SystemCapability.Ability.AbilityRuntime.Core
140     * @stagemodelonly
141     * @atomicservice
142     * @since 12
143     */
144    lastExitMessage: string;
145  }
146
147  /**
148   * Type of launch reason.
149   *
150   * @enum { number }
151   * @syscap SystemCapability.Ability.AbilityRuntime.Core
152   * @stagemodelonly
153   * @since 9
154   */
155  /**
156   * Type of launch reason.
157   *
158   * @enum { number }
159   * @syscap SystemCapability.Ability.AbilityRuntime.Core
160   * @stagemodelonly
161   * @crossplatform
162   * @since 10
163   */
164  /**
165   * Type of launch reason.
166   *
167   * @enum { number }
168   * @syscap SystemCapability.Ability.AbilityRuntime.Core
169   * @stagemodelonly
170   * @crossplatform
171   * @atomicservice
172   * @since 11
173   */
174  export enum LaunchReason {
175    /**
176     * Unknown reason.
177     *
178     * @syscap SystemCapability.Ability.AbilityRuntime.Core
179     * @stagemodelonly
180     * @since 9
181     */
182    /**
183     * @syscap SystemCapability.Ability.AbilityRuntime.Core
184     * @stagemodelonly
185     * @crossplatform
186     * @since 10
187     */
188    /**
189     * @syscap SystemCapability.Ability.AbilityRuntime.Core
190     * @stagemodelonly
191     * @crossplatform
192     * @atomicservice
193     * @since 11
194     */
195    UNKNOWN = 0,
196
197    /**
198     * Start ability through the startAbility interface.
199     *
200     * @syscap SystemCapability.Ability.AbilityRuntime.Core
201     * @stagemodelonly
202     * @since 9
203     */
204    /**
205     * Start ability through the startAbility interface.
206     *
207     * @syscap SystemCapability.Ability.AbilityRuntime.Core
208     * @stagemodelonly
209     * @atomicservice
210     * @since 11
211     */
212    START_ABILITY = 1,
213
214    /**
215     * Start ability through the startAbilityByCall interface.
216     *
217     * @syscap SystemCapability.Ability.AbilityRuntime.Core
218     * @stagemodelonly
219     * @since 9
220     */
221    /**
222     * Start ability through the startAbilityByCall interface.
223     *
224     * @syscap SystemCapability.Ability.AbilityRuntime.Core
225     * @stagemodelonly
226     * @atomicservice
227     * @since 11
228     */
229    CALL = 2,
230
231    /**
232     * Start ability through cross-end device migration.
233     *
234     * @syscap SystemCapability.Ability.AbilityRuntime.Core
235     * @stagemodelonly
236     * @since 9
237     */
238    /**
239     * Start ability through cross-end device migration.
240     *
241     * @syscap SystemCapability.Ability.AbilityRuntime.Core
242     * @stagemodelonly
243     * @atomicservice
244     * @since 11
245     */
246    CONTINUATION = 3,
247
248    /**
249     * After the application is restored, the ability is automatically restored and started when the application fails.
250     *
251     * @syscap SystemCapability.Ability.AbilityRuntime.Core
252     * @stagemodelonly
253     * @since 9
254     */
255    /**
256     * After the application is restored, the ability is automatically restored and started when the application fails.
257     *
258     * @syscap SystemCapability.Ability.AbilityRuntime.Core
259     * @stagemodelonly
260     * @atomicservice
261     * @since 11
262     */
263    APP_RECOVERY = 4,
264
265    /**
266     * Start ability through the acquireShareData interface.
267     *
268     * @syscap SystemCapability.Ability.AbilityRuntime.Core
269     * @stagemodelonly
270     * @since 10
271     */
272    /**
273     * Start ability through the acquireShareData interface.
274     *
275     * @syscap SystemCapability.Ability.AbilityRuntime.Core
276     * @stagemodelonly
277     * @atomicservice
278     * @since 11
279     */
280    SHARE = 5,
281
282    /**
283     * Start ability by booting it up.
284     *
285     * @syscap SystemCapability.Ability.AbilityRuntime.Core
286     * @stagemodelonly
287     * @since 11
288     */
289    AUTO_STARTUP = 8,
290
291    /**
292     * Start ability through the insight intent interface.
293     *
294     * @syscap SystemCapability.Ability.AbilityRuntime.Core
295     * @stagemodelonly
296     * @atomicservice
297     * @since 11
298     */
299    INSIGHT_INTENT = 9,
300
301    /**
302     * Prepare start ability through cross-end device migration.
303     *
304     * @syscap SystemCapability.Ability.AbilityRuntime.Core
305     * @stagemodelonly
306     * @atomicservice
307     * @since 12
308     */
309    PREPARE_CONTINUATION = 10,
310  }
311
312  /**
313   * Type of last exit reason.
314   *
315   * @enum { number }
316   * @syscap SystemCapability.Ability.AbilityRuntime.Core
317   * @stagemodelonly
318   * @since 9
319   */
320  /**
321   * Type of last exit reason.
322   *
323   * @enum { number }
324   * @syscap SystemCapability.Ability.AbilityRuntime.Core
325   * @stagemodelonly
326   * @crossplatform
327   * @since 10
328   */
329  /**
330   * Type of last exit reason.
331   *
332   * @enum { number }
333   * @syscap SystemCapability.Ability.AbilityRuntime.Core
334   * @stagemodelonly
335   * @crossplatform
336   * @atomicservice
337   * @since 11
338   */
339  export enum LastExitReason {
340    /**
341     * Exit reason : Unknown. The reason for the last exit of the target application is not recorded in the application
342     *               framework.
343     *
344     * @syscap SystemCapability.Ability.AbilityRuntime.Core
345     * @stagemodelonly
346     * @since 9
347     */
348    /**
349     * Exit reason : Unknown. The reason for the last exit of the target application is not recorded in the application
350     *               framework.
351     *
352     * @syscap SystemCapability.Ability.AbilityRuntime.Core
353     * @stagemodelonly
354     * @crossplatform
355     * @since 10
356     */
357    /**
358     * Exit reason : Unknown. The reason for the last exit of the target application is not recorded in the application
359     *               framework.
360     *
361     * @syscap SystemCapability.Ability.AbilityRuntime.Core
362     * @stagemodelonly
363     * @crossplatform
364     * @atomicservice
365     * @since 11
366     */
367    UNKNOWN = 0,
368
369    /**
370     * Exit reason : Ability is not responding.
371     *
372     * @syscap SystemCapability.Ability.AbilityRuntime.Core
373     * @stagemodelonly
374     * @since 9
375     * @deprecated since 10
376     * @useinstead AbilityConstant.LastExitReason#APP_FREEZE
377     */
378    ABILITY_NOT_RESPONDING = 1,
379
380    /**
381     * Exit reason : normally. App exit due to user active close.
382     *
383     * @syscap SystemCapability.Ability.AbilityRuntime.Core
384     * @stagemodelonly
385     * @since 9
386     */
387    /**
388     * Exit reason : normally. App exit due to user active close.
389     *
390     * @syscap SystemCapability.Ability.AbilityRuntime.Core
391     * @stagemodelonly
392     * @atomicservice
393     * @since 11
394     */
395    NORMAL = 2,
396
397    /**
398     * Exit reason : cpp crash. The app exit due to native exception signal.
399     *
400     * @syscap SystemCapability.Ability.AbilityRuntime.Core
401     * @stagemodelonly
402     * @since 10
403     */
404    /**
405     * Exit reason : cpp crash. The app exit due to native exception signal.
406     *
407     * @syscap SystemCapability.Ability.AbilityRuntime.Core
408     * @stagemodelonly
409     * @atomicservice
410     * @since 11
411     */
412    CPP_CRASH = 3,
413
414    /**
415     * Exit reason : js error. App exit due to js error.
416     *
417     * @syscap SystemCapability.Ability.AbilityRuntime.Core
418     * @stagemodelonly
419     * @since 10
420     */
421    /**
422     * Exit reason : js error. App exit due to js error.
423     *
424     * @syscap SystemCapability.Ability.AbilityRuntime.Core
425     * @stagemodelonly
426     * @atomicservice
427     * @since 11
428     */
429    JS_ERROR = 4,
430
431    /**
432     * Exit reason : app freeze. App exit due to appFreeze error.
433     *
434     * @syscap SystemCapability.Ability.AbilityRuntime.Core
435     * @stagemodelonly
436     * @since 10
437     */
438    /**
439     * Exit reason : app freeze. App exit due to appFreeze error.
440     *
441     * @syscap SystemCapability.Ability.AbilityRuntime.Core
442     * @stagemodelonly
443     * @atomicservice
444     * @since 11
445     */
446    APP_FREEZE = 5,
447
448    /**
449     * Exit reason : performance control. App exit due to system performance issues, such as device low memory.
450     *
451     * @syscap SystemCapability.Ability.AbilityRuntime.Core
452     * @stagemodelonly
453     * @since 10
454     */
455    /**
456     * Exit reason : performance control. App exit due to system performance issues, such as device low memory.
457     *
458     * @syscap SystemCapability.Ability.AbilityRuntime.Core
459     * @stagemodelonly
460     * @atomicservice
461     * @since 11
462     */
463    PERFORMANCE_CONTROL = 6,
464
465    /**
466     * Exit reason : resource control. App exit due to resource usage violation, such as exceed cpu/io/memory usage.
467     *
468     * @syscap SystemCapability.Ability.AbilityRuntime.Core
469     * @stagemodelonly
470     * @since 10
471     */
472    /**
473     * Exit reason : resource control. App exit due to resource usage violation, such as exceed cpu/io/memory usage.
474     *
475     * @syscap SystemCapability.Ability.AbilityRuntime.Core
476     * @stagemodelonly
477     * @atomicservice
478     * @since 11
479     */
480    RESOURCE_CONTROL = 7,
481
482    /**
483     * Exit reason : upgrade. App exit due to upgrade.
484     *
485     * @syscap SystemCapability.Ability.AbilityRuntime.Core
486     * @stagemodelonly
487     * @since 10
488     */
489    /**
490     * Exit reason : upgrade. App exit due to upgrade.
491     *
492     * @syscap SystemCapability.Ability.AbilityRuntime.Core
493     * @stagemodelonly
494     * @atomicservice
495     * @since 11
496     */
497    UPGRADE = 8
498  }
499
500  /**
501   * Type of onContinue result.
502   *
503   * @enum { number }
504   * @syscap SystemCapability.Ability.AbilityRuntime.Core
505   * @stagemodelonly
506   * @since 9
507   */
508  /**
509   * Type of onContinue result.
510   *
511   * @enum { number }
512   * @syscap SystemCapability.Ability.AbilityRuntime.Core
513   * @stagemodelonly
514   * @atomicservice
515   * @since 11
516   */
517  export enum OnContinueResult {
518    /**
519     * Agree to the result of Ability migration.
520     *
521     * @syscap SystemCapability.Ability.AbilityRuntime.Core
522     * @stagemodelonly
523     * @since 9
524     */
525    /**
526     * Agree to the result of Ability migration.
527     *
528     * @syscap SystemCapability.Ability.AbilityRuntime.Core
529     * @stagemodelonly
530     * @atomicservice
531     * @since 11
532     */
533    AGREE = 0,
534
535    /**
536     * Reject to the result of Ability migration.
537     *
538     * @syscap SystemCapability.Ability.AbilityRuntime.Core
539     * @stagemodelonly
540     * @since 9
541     */
542    /**
543     * Reject to the result of Ability migration.
544     *
545     * @syscap SystemCapability.Ability.AbilityRuntime.Core
546     * @stagemodelonly
547     * @atomicservice
548     * @since 11
549     */
550    REJECT = 1,
551
552    /**
553     * Mismatch to the result of Ability migration.
554     *
555     * @syscap SystemCapability.Ability.AbilityRuntime.Core
556     * @stagemodelonly
557     * @since 9
558     */
559    /**
560     * Mismatch to the result of Ability migration.
561     *
562     * @syscap SystemCapability.Ability.AbilityRuntime.Core
563     * @stagemodelonly
564     * @atomicservice
565     * @since 11
566     */
567    MISMATCH = 2
568  }
569
570  /**
571   * Type of memory level.
572   *
573   * @enum { number }
574   * @syscap SystemCapability.Ability.AbilityRuntime.Core
575   * @stagemodelonly
576   * @since 9
577   */
578  /**
579   * Type of memory level.
580   *
581   * @enum { number }
582   * @syscap SystemCapability.Ability.AbilityRuntime.Core
583   * @stagemodelonly
584   * @atomicservice
585   * @since 11
586   */
587  export enum MemoryLevel {
588    /**
589     * Memory footprint is moderate.
590     *
591     * @syscap SystemCapability.Ability.AbilityRuntime.Core
592     * @stagemodelonly
593     * @since 9
594     */
595    /**
596     * Memory footprint is moderate.
597     *
598     * @syscap SystemCapability.Ability.AbilityRuntime.Core
599     * @stagemodelonly
600     * @atomicservice
601     * @since 11
602     */
603    MEMORY_LEVEL_MODERATE = 0,
604
605    /**
606     * Low memory footprint.
607     *
608     * @syscap SystemCapability.Ability.AbilityRuntime.Core
609     * @stagemodelonly
610     * @since 9
611     */
612    /**
613     * Low memory footprint.
614     *
615     * @syscap SystemCapability.Ability.AbilityRuntime.Core
616     * @stagemodelonly
617     * @atomicservice
618     * @since 11
619     */
620    MEMORY_LEVEL_LOW = 1,
621
622    /**
623     * High memory footprint.
624     *
625     * @syscap SystemCapability.Ability.AbilityRuntime.Core
626     * @stagemodelonly
627     * @since 9
628     */
629    /**
630     * High memory footprint.
631     *
632     * @syscap SystemCapability.Ability.AbilityRuntime.Core
633     * @stagemodelonly
634     * @atomicservice
635     * @since 11
636     */
637    MEMORY_LEVEL_CRITICAL = 2
638  }
639
640  /**
641   * Type of window mode.
642   *
643   * @enum { number }
644   * @syscap SystemCapability.Ability.AbilityRuntime.Core
645   * @stagemodelonly
646   * @since 12
647   */
648  export enum WindowMode {
649    /**
650     * The window mode is not defined.
651     *
652     * @syscap SystemCapability.Ability.AbilityRuntime.Core
653     * @systemapi
654     * @stagemodelonly
655     * @since 12
656     */
657    WINDOW_MODE_UNDEFINED = 0,
658
659    /**
660     * Full screen mode.
661     *
662     * @syscap SystemCapability.Ability.AbilityRuntime.Core
663     * @stagemodelonly
664     * @since 12
665     */
666    WINDOW_MODE_FULLSCREEN = 1,
667
668    /**
669     * Primary screen in split-screen mode. If the screen is horizontal, it means the left split screen.
670     * It is valid only in intra-app redirection scenarios.
671     *
672     * @syscap SystemCapability.Ability.AbilityRuntime.Core
673     * @stagemodelonly
674     * @since 12
675     */
676    WINDOW_MODE_SPLIT_PRIMARY = 100,
677
678    /**
679     * Secondary screen in split-screen mode. If the screen is horizontal, it means the right split screen.
680     * It is valid only in intra-app redirection scenarios.
681     *
682     * @syscap SystemCapability.Ability.AbilityRuntime.Core
683     * @stagemodelonly
684     * @since 12
685     */
686    WINDOW_MODE_SPLIT_SECONDARY = 101,
687
688    /**
689     * Free floating window mode.
690     *
691     * @syscap SystemCapability.Ability.AbilityRuntime.Core
692     * @systemapi
693     * @stagemodelonly
694     * @since 12
695     */
696    WINDOW_MODE_FLOATING = 102
697  }
698
699  /**
700   * Type of onSave result.
701   *
702   * @enum { number }
703   * @syscap SystemCapability.Ability.AbilityRuntime.Core
704   * @stagemodelonly
705   * @since 9
706   */
707  /**
708   * Type of onSave result.
709   *
710   * @enum { number }
711   * @syscap SystemCapability.Ability.AbilityRuntime.Core
712   * @stagemodelonly
713   * @atomicservice
714   * @since 11
715   */
716  export enum OnSaveResult {
717    /**
718     * Always agree to save the state.
719     *
720     * @syscap SystemCapability.Ability.AbilityRuntime.Core
721     * @stagemodelonly
722     * @since 9
723     */
724    /**
725     * Always agree to save the state.
726     *
727     * @syscap SystemCapability.Ability.AbilityRuntime.Core
728     * @stagemodelonly
729     * @atomicservice
730     * @since 11
731     */
732    ALL_AGREE = 0,
733
734    /**
735     * Refuse to migrate the saved state.
736     *
737     * @syscap SystemCapability.Ability.AbilityRuntime.Core
738     * @stagemodelonly
739     * @since 9
740     */
741    /**
742     * Refuse to migrate the saved state.
743     *
744     * @syscap SystemCapability.Ability.AbilityRuntime.Core
745     * @stagemodelonly
746     * @atomicservice
747     * @since 11
748     */
749    CONTINUATION_REJECT = 1,
750
751    /**
752     * Migration mismatch.
753     *
754     * @syscap SystemCapability.Ability.AbilityRuntime.Core
755     * @stagemodelonly
756     * @since 9
757     */
758    /**
759     * Migration mismatch.
760     *
761     * @syscap SystemCapability.Ability.AbilityRuntime.Core
762     * @stagemodelonly
763     * @atomicservice
764     * @since 11
765     */
766    CONTINUATION_MISMATCH = 2,
767
768    /**
769     * Agree to restore the saved state.
770     *
771     * @syscap SystemCapability.Ability.AbilityRuntime.Core
772     * @stagemodelonly
773     * @since 9
774     */
775    /**
776     * Agree to restore the saved state.
777     *
778     * @syscap SystemCapability.Ability.AbilityRuntime.Core
779     * @stagemodelonly
780     * @atomicservice
781     * @since 11
782     */
783    RECOVERY_AGREE = 3,
784
785    /**
786     * Refuse to restore the saved state.
787     *
788     * @syscap SystemCapability.Ability.AbilityRuntime.Core
789     * @stagemodelonly
790     * @since 9
791     */
792    /**
793     * Refuse to restore the saved state.
794     *
795     * @syscap SystemCapability.Ability.AbilityRuntime.Core
796     * @stagemodelonly
797     * @atomicservice
798     * @since 11
799     */
800    RECOVERY_REJECT = 4,
801
802    /**
803     * Always refuses to save the state.
804     *
805     * @syscap SystemCapability.Ability.AbilityRuntime.Core
806     * @stagemodelonly
807     * @since 9
808     */
809    /**
810     * Always refuses to save the state.
811     *
812     * @syscap SystemCapability.Ability.AbilityRuntime.Core
813     * @stagemodelonly
814     * @atomicservice
815     * @since 11
816     */
817    ALL_REJECT
818  }
819
820  /**
821   * Type of save state.
822   *
823   * @enum { number }
824   * @syscap SystemCapability.Ability.AbilityRuntime.Core
825   * @stagemodelonly
826   * @since 9
827   */
828  /**
829   * Type of save state.
830   *
831   * @enum { number }
832   * @syscap SystemCapability.Ability.AbilityRuntime.Core
833   * @stagemodelonly
834   * @atomicservice
835   * @since 11
836   */
837  export enum StateType {
838    /**
839     * Migrate and save the state.
840     *
841     * @syscap SystemCapability.Ability.AbilityRuntime.Core
842     * @stagemodelonly
843     * @since 9
844     */
845    /**
846     * Migrate and save the state.
847     *
848     * @syscap SystemCapability.Ability.AbilityRuntime.Core
849     * @stagemodelonly
850     * @atomicservice
851     * @since 11
852     */
853    CONTINUATION = 0,
854
855    /**
856     * App recovery to restore the saved state.
857     *
858     * @syscap SystemCapability.Ability.AbilityRuntime.Core
859     * @stagemodelonly
860     * @since 9
861     */
862    /**
863     * App recovery to restore the saved state.
864     *
865     * @syscap SystemCapability.Ability.AbilityRuntime.Core
866     * @stagemodelonly
867     * @atomicservice
868     * @since 11
869     */
870    APP_RECOVERY = 1
871  }
872
873  /**
874   * Continue state.
875   *
876   * @enum { number }
877   * @syscap SystemCapability.Ability.AbilityRuntime.Core
878   * @stagemodelonly
879   * @since 10
880   */
881  /**
882   * Continue state.
883   *
884   * @enum { number }
885   * @syscap SystemCapability.Ability.AbilityRuntime.Core
886   * @stagemodelonly
887   * @atomicservice
888   * @since 11
889   */
890  export enum ContinueState {
891    /**
892     * Mission continuable active.
893     *
894     * @syscap SystemCapability.Ability.AbilityRuntime.Core
895     * @stagemodelonly
896     * @since 10
897     */
898    /**
899     * Mission continuable inactive.
900     *
901     * @syscap SystemCapability.Ability.AbilityRuntime.Core
902     * @stagemodelonly
903     * @atomicservice
904     * @since 11
905     */
906    ACTIVE = 0,
907
908    /**
909     * Mission continuable inactive.
910     *
911     * @syscap SystemCapability.Ability.AbilityRuntime.Core
912     * @stagemodelonly
913     * @since 10
914     */
915    /**
916     * Mission continuable inactive.
917     *
918     * @syscap SystemCapability.Ability.AbilityRuntime.Core
919     * @stagemodelonly
920     * @atomicservice
921     * @since 11
922     */
923    INACTIVE = 1
924  }
925
926  /**
927   * PrepareTerminateAction indicates what to do prior to terminating process.
928   *
929   * @enum { number }
930   * @syscap SystemCapability.Ability.AbilityRuntime.Core
931   * @stagemodelonly
932   * @atomicservice
933   * @since 15
934   */
935  export enum PrepareTermination {
936    /**
937     * Terminate process immediately.
938     *
939     * @syscap SystemCapability.Ability.AbilityRuntime.Core
940     * @stagemodelonly
941     * @atomicservice
942     * @since 15
943     */
944    TERMINATE_IMMEDIATELY = 0,
945
946    /**
947     * Cancel terminate.
948     *
949     * @syscap SystemCapability.Ability.AbilityRuntime.Core
950     * @stagemodelonly
951     * @atomicservice
952     * @since 15
953     */
954    CANCEL = 1
955  }
956}
957
958export default AbilityConstant;
959