• 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 { Metadata } from './Metadata';
22import { Resource } from '../global/resource';
23import bundleManager from './../@ohos.bundle.bundleManager';
24
25/**
26 * Obtains configuration information about an application
27 *
28 * @typedef ApplicationInfo
29 * @syscap SystemCapability.BundleManager.BundleFramework.Core
30 * @since 9
31 */
32/**
33 * Obtains configuration information about an application
34 *
35 * @typedef ApplicationInfo
36 * @syscap SystemCapability.BundleManager.BundleFramework.Core
37 * @crossplatform
38 * @since 10
39 */
40/**
41 * Obtains configuration information about an application
42 *
43 * @typedef ApplicationInfo
44 * @syscap SystemCapability.BundleManager.BundleFramework.Core
45 * @crossplatform
46 * @atomicservice
47 * @since arkts {'1.1':'11', '1.2':'20'}
48 * @arkts 1.1&1.2
49 */
50export interface ApplicationInfo {
51  /**
52   * Indicates the application name, which is the same as {@code bundleName}
53   *
54   * @type { string }
55   * @readonly
56   * @syscap SystemCapability.BundleManager.BundleFramework.Core
57   * @since 9
58   */
59  /**
60   * Indicates the application name, which is the same as {@code bundleName}
61   *
62   * @type { string }
63   * @readonly
64   * @syscap SystemCapability.BundleManager.BundleFramework.Core
65   * @crossplatform
66   * @since 10
67   */
68  /**
69   * Indicates the application name, which is the same as {@code bundleName}
70   *
71   * @type { string }
72   * @readonly
73   * @syscap SystemCapability.BundleManager.BundleFramework.Core
74   * @crossplatform
75   * @atomicservice
76   * @since arkts {'1.1':'11', '1.2':'20'}
77   * @arkts 1.1&1.2
78   */
79  readonly name: string;
80
81  /**
82   * Description of application
83   *
84   * @type { string }
85   * @readonly
86   * @syscap SystemCapability.BundleManager.BundleFramework.Core
87   * @since 9
88   */
89  /**
90   * Description of application
91   *
92   * @type { string }
93   * @readonly
94   * @syscap SystemCapability.BundleManager.BundleFramework.Core
95   * @crossplatform
96   * @since 10
97   */
98  /**
99   * Description of application
100   *
101   * @type { string }
102   * @readonly
103   * @syscap SystemCapability.BundleManager.BundleFramework.Core
104   * @crossplatform
105   * @atomicservice
106   * @since arkts {'1.1':'11', '1.2':'20'}
107   * @arkts 1.1&1.2
108   */
109  readonly description: string;
110
111  /**
112   * Indicates the description id of the application
113   *
114   * @type { number }
115   * @readonly
116   * @syscap SystemCapability.BundleManager.BundleFramework.Core
117   * @since 9
118   */
119  /**
120   * Indicates the description id of the application
121   *
122   * @type { number }
123   * @readonly
124   * @syscap SystemCapability.BundleManager.BundleFramework.Core
125   * @crossplatform
126   * @since 10
127   */
128  /**
129   * Indicates the description id of the application
130   *
131   * @type { number }
132   * @readonly
133   * @syscap SystemCapability.BundleManager.BundleFramework.Core
134   * @crossplatform
135   * @atomicservice
136   * @since arkts {'1.1':'11', '1.2':'20'}
137   * @arkts 1.1&1.2
138   */
139  readonly descriptionId: number;
140
141  /**
142   * Indicates whether or not this application may be instantiated
143   *
144   * @type { boolean }
145   * @readonly
146   * @syscap SystemCapability.BundleManager.BundleFramework.Core
147   * @since 9
148   */
149  /**
150   * Indicates whether or not this application may be instantiated
151   *
152   * @type { boolean }
153   * @readonly
154   * @syscap SystemCapability.BundleManager.BundleFramework.Core
155   * @atomicservice
156   * @since 11
157   */
158  /**
159   * Indicates whether or not this application may be instantiated
160   *
161   * @type { boolean }
162   * @readonly
163   * @syscap SystemCapability.BundleManager.BundleFramework.Core
164   * @crossplatform
165   * @atomicservice
166   * @since 20
167   * @arkts 1.1&1.2
168   */
169  readonly enabled: boolean;
170
171  /**
172   * Indicates the label of the application
173   *
174   * @type { string }
175   * @readonly
176   * @syscap SystemCapability.BundleManager.BundleFramework.Core
177   * @since 9
178   */
179  /**
180   * Indicates the label of the application
181   *
182   * @type { string }
183   * @readonly
184   * @syscap SystemCapability.BundleManager.BundleFramework.Core
185   * @crossplatform
186   * @since 10
187   */
188  /**
189   * Indicates the label of the application
190   *
191   * @type { string }
192   * @readonly
193   * @syscap SystemCapability.BundleManager.BundleFramework.Core
194   * @crossplatform
195   * @atomicservice
196   * @since arkts {'1.1':'11', '1.2':'20'}
197   * @arkts 1.1&1.2
198   */
199  readonly label: string;
200
201  /**
202   * Indicates the label id of the application
203   *
204   * @type { number }
205   * @readonly
206   * @syscap SystemCapability.BundleManager.BundleFramework.Core
207   * @since 9
208   */
209  /**
210   * Indicates the label id of the application
211   *
212   * @type { number }
213   * @readonly
214   * @syscap SystemCapability.BundleManager.BundleFramework.Core
215   * @crossplatform
216   * @since 10
217   */
218  /**
219   * Indicates the label id of the application
220   *
221   * @type { number }
222   * @readonly
223   * @syscap SystemCapability.BundleManager.BundleFramework.Core
224   * @crossplatform
225   * @atomicservice
226   * @since arkts {'1.1':'11', '1.2':'20'}
227   * @arkts 1.1&1.2
228   */
229  readonly labelId: number;
230
231  /**
232   * Indicates the icon of the application
233   *
234   * @type { string }
235   * @readonly
236   * @syscap SystemCapability.BundleManager.BundleFramework.Core
237   * @since 9
238   */
239  /**
240   * Indicates the icon of the application
241   *
242   * @type { string }
243   * @readonly
244   * @syscap SystemCapability.BundleManager.BundleFramework.Core
245   * @crossplatform
246   * @since 10
247   */
248  /**
249   * Indicates the icon of the application
250   *
251   * @type { string }
252   * @readonly
253   * @syscap SystemCapability.BundleManager.BundleFramework.Core
254   * @crossplatform
255   * @atomicservice
256   * @since arkts {'1.1':'11', '1.2':'20'}
257   * @arkts 1.1&1.2
258   */
259  readonly icon: string;
260
261  /**
262   * Indicates the icon id of the application
263   *
264   * @type { number }
265   * @readonly
266   * @syscap SystemCapability.BundleManager.BundleFramework.Core
267   * @since 9
268   */
269  /**
270   * Indicates the icon id of the application
271   *
272   * @type { number }
273   * @readonly
274   * @syscap SystemCapability.BundleManager.BundleFramework.Core
275   * @crossplatform
276   * @since 10
277   */
278  /**
279   * Indicates the icon id of the application
280   *
281   * @type { number }
282   * @readonly
283   * @syscap SystemCapability.BundleManager.BundleFramework.Core
284   * @crossplatform
285   * @atomicservice
286   * @since arkts {'1.1':'11', '1.2':'20'}
287   * @arkts 1.1&1.2
288   */
289  readonly iconId: number;
290
291  /**
292   * Process of application, if user do not set it ,the value equal bundleName
293   *
294   * @type { string }
295   * @readonly
296   * @syscap SystemCapability.BundleManager.BundleFramework.Core
297   * @since 9
298   */
299  /**
300   * Process of application, if user do not set it ,the value equal bundleName
301   *
302   * @type { string }
303   * @readonly
304   * @syscap SystemCapability.BundleManager.BundleFramework.Core
305   * @atomicservice
306   * @since 11
307   */
308  /**
309   * Process of application, if user do not set it ,the value equal bundleName
310   *
311   * @type { string }
312   * @readonly
313   * @syscap SystemCapability.BundleManager.BundleFramework.Core
314   * @crossplatform
315   * @atomicservice
316   * @since 20
317   * @arkts 1.1&1.2
318   */
319  readonly process: string;
320
321  /**
322   * Indicates the permissions required for accessing the application.
323   *
324   * @type { Array<string> }
325   * @readonly
326   * @syscap SystemCapability.BundleManager.BundleFramework.Core
327   * @since 9
328   */
329  /**
330   * Indicates the permissions required for accessing the application.
331   *
332   * @type { Array<string> }
333   * @readonly
334   * @syscap SystemCapability.BundleManager.BundleFramework.Core
335   * @atomicservice
336   * @since 11
337   */
338  /**
339   * Indicates the permissions required for accessing the application.
340   *
341   * @type { Array<string> }
342   * @readonly
343   * @syscap SystemCapability.BundleManager.BundleFramework.Core
344   * @crossplatform
345   * @atomicservice
346   * @since 20
347   * @arkts 1.1&1.2
348   */
349  readonly permissions: Array<string>;
350
351  /**
352   * Indicates the application source code path
353   *
354   * @type { string }
355   * @readonly
356   * @syscap SystemCapability.BundleManager.BundleFramework.Core
357   * @since 9
358   */
359  /**
360   * Indicates the application source code path
361   *
362   * @type { string }
363   * @readonly
364   * @syscap SystemCapability.BundleManager.BundleFramework.Core
365   * @crossplatform
366   * @since 10
367   */
368  /**
369   * Indicates the application source code path
370   *
371   * @type { string }
372   * @readonly
373   * @syscap SystemCapability.BundleManager.BundleFramework.Core
374   * @crossplatform
375   * @atomicservice
376   * @since arkts {'1.1':'11', '1.2':'20'}
377   * @arkts 1.1&1.2
378   */
379  readonly codePath: string;
380
381  /**
382   * Indicates the metadata of module
383   *
384   * @type { Map<string, Array<Metadata>> }
385   * @readonly
386   * @syscap SystemCapability.BundleManager.BundleFramework.Core
387   * @since 9
388   * @deprecated since 10
389   * @useinstead ApplicationInfo#metadataArray
390   */
391  readonly metadata: Map<string, Array<Metadata>>;
392
393  /**
394   * Indicates the metadata of the application
395   *
396   * @type { Array<ModuleMetadata> }
397   * @readonly
398   * @syscap SystemCapability.BundleManager.BundleFramework.Core
399   * @since 10
400   */
401  /**
402   * Indicates the metadata of the application
403   *
404   * @type { Array<ModuleMetadata> }
405   * @readonly
406   * @syscap SystemCapability.BundleManager.BundleFramework.Core
407   * @atomicservice
408   * @since 11
409   */
410  /**
411   * Indicates the metadata of the application
412   *
413   * @type { Array<ModuleMetadata> }
414   * @readonly
415   * @syscap SystemCapability.BundleManager.BundleFramework.Core
416   * @crossplatform
417   * @atomicservice
418   * @since 20
419   * @arkts 1.1&1.2
420   */
421  readonly metadataArray: Array<ModuleMetadata>;
422
423  /**
424   * Indicates whether or not this application may be removable
425   *
426   * @type { boolean }
427   * @readonly
428   * @syscap SystemCapability.BundleManager.BundleFramework.Core
429   * @since 9
430   */
431  /**
432   * Indicates whether or not this application may be removable
433   *
434   * @type { boolean }
435   * @readonly
436   * @syscap SystemCapability.BundleManager.BundleFramework.Core
437   * @atomicservice
438   * @since 11
439   */
440  /**
441   * Indicates whether or not this application may be removable
442   *
443   * @type { boolean }
444   * @readonly
445   * @syscap SystemCapability.BundleManager.BundleFramework.Core
446   * @crossplatform
447   * @atomicservice
448   * @since 20
449   * @arkts 1.1&1.2
450   */
451  readonly removable: boolean;
452
453  /**
454   * Indicates the access token of the application
455   *
456   * @type { number }
457   * @readonly
458   * @syscap SystemCapability.BundleManager.BundleFramework.Core
459   * @since 9
460   */
461  /**
462   * Indicates the access token of the application
463   *
464   * @type { number }
465   * @readonly
466   * @syscap SystemCapability.BundleManager.BundleFramework.Core
467   * @atomicservice
468   * @since 11
469   */
470  /**
471   * Indicates the access token of the application
472   *
473   * @type { number }
474   * @readonly
475   * @syscap SystemCapability.BundleManager.BundleFramework.Core
476   * @crossplatform
477   * @atomicservice
478   * @since 20
479   * @arkts 1.1&1.2
480   */
481  readonly accessTokenId: number;
482
483  /**
484   * Indicates the uid of the application
485   *
486   * @type { number }
487   * @readonly
488   * @syscap SystemCapability.BundleManager.BundleFramework.Core
489   * @since 9
490   */
491  /**
492   * Indicates the uid of the application
493   *
494   * @type { number }
495   * @readonly
496   * @syscap SystemCapability.BundleManager.BundleFramework.Core
497   * @atomicservice
498   * @since 11
499   */
500  /**
501   * Indicates the uid of the application
502   *
503   * @type { number }
504   * @readonly
505   * @syscap SystemCapability.BundleManager.BundleFramework.Core
506   * @crossplatform
507   * @atomicservice
508   * @since 20
509   * @arkts 1.1&1.2
510   */
511  readonly uid: number;
512
513  /**
514   * Indicates icon resource of the application
515   *
516   * @type { Resource }
517   * @readonly
518   * @syscap SystemCapability.BundleManager.BundleFramework.Core
519   * @since 9
520   */
521  /**
522   * Indicates icon resource of the application
523   *
524   * @type { Resource }
525   * @readonly
526   * @syscap SystemCapability.BundleManager.BundleFramework.Core
527   * @atomicservice
528   * @since 11
529   */
530  /**
531   * Indicates icon resource of the application
532   *
533   * @type { Resource }
534   * @readonly
535   * @syscap SystemCapability.BundleManager.BundleFramework.Core
536   * @crossplatform
537   * @atomicservice
538   * @since 20
539   * @arkts 1.1&1.2
540   */
541  readonly iconResource: Resource;
542
543  /**
544   * Indicates label resource of the application
545   *
546   * @type { Resource }
547   * @readonly
548   * @syscap SystemCapability.BundleManager.BundleFramework.Core
549   * @since 9
550   */
551  /**
552   * Indicates label resource of the application
553   *
554   * @type { Resource }
555   * @readonly
556   * @syscap SystemCapability.BundleManager.BundleFramework.Core
557   * @atomicservice
558   * @since 11
559   */
560  /**
561   * Indicates label resource of the application
562   *
563   * @type { Resource }
564   * @readonly
565   * @syscap SystemCapability.BundleManager.BundleFramework.Core
566   * @crossplatform
567   * @atomicservice
568   * @since 20
569   * @arkts 1.1&1.2
570   */
571  readonly labelResource: Resource;
572
573  /**
574   * Indicates description resource of the application
575   *
576   * @type { Resource }
577   * @readonly
578   * @syscap SystemCapability.BundleManager.BundleFramework.Core
579   * @since 9
580   */
581  /**
582   * Indicates description resource of the application
583   *
584   * @type { Resource }
585   * @readonly
586   * @syscap SystemCapability.BundleManager.BundleFramework.Core
587   * @atomicservice
588   * @since 11
589   */
590  /**
591   * Indicates description resource of the application
592   *
593   * @type { Resource }
594   * @readonly
595   * @syscap SystemCapability.BundleManager.BundleFramework.Core
596   * @crossplatform
597   * @atomicservice
598   * @since 20
599   * @arkts 1.1&1.2
600   */
601  readonly descriptionResource: Resource;
602
603  /**
604   * Indicates the appDistributionType of the application
605   *
606   * @type { string }
607   * @readonly
608   * @syscap SystemCapability.BundleManager.BundleFramework.Core
609   * @since 9
610   */
611  /**
612   * Indicates the appDistributionType of the application
613   *
614   * @type { string }
615   * @readonly
616   * @syscap SystemCapability.BundleManager.BundleFramework.Core
617   * @atomicservice
618   * @since 11
619   */
620  /**
621   * Indicates the appDistributionType of the application
622   *
623   * @type { string }
624   * @readonly
625   * @syscap SystemCapability.BundleManager.BundleFramework.Core
626   * @crossplatform
627   * @atomicservice
628   * @since 20
629   * @arkts 1.1&1.2
630   */
631  readonly appDistributionType: string;
632
633  /**
634   * Indicates the appProvisionType of the application
635   *
636   * @type { string }
637   * @readonly
638   * @syscap SystemCapability.BundleManager.BundleFramework.Core
639   * @since 9
640   */
641  /**
642   * Indicates the appProvisionType of the application
643   *
644   * @type { string }
645   * @readonly
646   * @syscap SystemCapability.BundleManager.BundleFramework.Core
647   * @atomicservice
648   * @since 11
649   */
650  /**
651   * Indicates the appProvisionType of the application
652   *
653   * @type { string }
654   * @readonly
655   * @syscap SystemCapability.BundleManager.BundleFramework.Core
656   * @crossplatform
657   * @atomicservice
658   * @since 20
659   * @arkts 1.1&1.2
660   */
661  readonly appProvisionType: string;
662
663  /**
664   * Indicates whether the application is a system application
665   *
666   * @type { boolean }
667   * @readonly
668   * @syscap SystemCapability.BundleManager.BundleFramework.Core
669   * @since 9
670   */
671  /**
672   * Indicates whether the application is a system application
673   *
674   * @type { boolean }
675   * @readonly
676   * @syscap SystemCapability.BundleManager.BundleFramework.Core
677   * @atomicservice
678   * @since 11
679   */
680  /**
681   * Indicates whether the application is a system application
682   *
683   * @type { boolean }
684   * @readonly
685   * @syscap SystemCapability.BundleManager.BundleFramework.Core
686   * @crossplatform
687   * @atomicservice
688   * @since 20
689   * @arkts 1.1&1.2
690   */
691  readonly systemApp: boolean;
692
693  /**
694   * Indicates the type of application is APP or atomicService.
695   *
696   * @type { bundleManager.BundleType }
697   * @readonly
698   * @syscap SystemCapability.BundleManager.BundleFramework.Core
699   * @since 9
700   */
701  /**
702   * Indicates the type of application is APP or atomicService.
703   *
704   * @type { bundleManager.BundleType }
705   * @readonly
706   * @syscap SystemCapability.BundleManager.BundleFramework.Core
707   * @atomicservice
708   * @since arkts {'1.1':'11', '1.2':'20'}
709   * @arkts 1.1&1.2
710   */
711  readonly bundleType: bundleManager.BundleType;
712
713  /**
714   * Indicates whether the application is in debug mode.
715   *
716   * @type { boolean }
717   * @readonly
718   * @syscap SystemCapability.BundleManager.BundleFramework.Core
719   * @since 10
720   */
721  /**
722   * Indicates whether the application is in debug mode.
723   *
724   * @type { boolean }
725   * @readonly
726   * @syscap SystemCapability.BundleManager.BundleFramework.Core
727   * @atomicservice
728   * @since 11
729   */
730  /**
731   * Indicates whether the application is in debug mode.
732   *
733   * @type { boolean }
734   * @readonly
735   * @syscap SystemCapability.BundleManager.BundleFramework.Core
736   * @crossplatform
737   * @atomicservice
738   * @since 20
739   * @arkts 1.1&1.2
740   */
741  readonly debug: boolean;
742
743  /**
744   * Indicates whether the application data is unclearable, that is, whether the application data cannot be cleared.
745   *
746   * @type { boolean }
747   * @readonly
748   * @syscap SystemCapability.BundleManager.BundleFramework.Core
749   * @atomicservice
750   * @since 11
751   */
752  /**
753   * Indicates whether the application data is unclearable, that is, whether the application data cannot be cleared.
754   *
755   * @type { boolean }
756   * @readonly
757   * @syscap SystemCapability.BundleManager.BundleFramework.Core
758   * @crossplatform
759   * @atomicservice
760   * @since 20
761   * @arkts 1.1&1.2
762   */
763  readonly dataUnclearable: boolean;
764
765  /**
766   * Indicates native library path.
767   *
768   * @type { string }
769   * @readonly
770   * @syscap SystemCapability.BundleManager.BundleFramework.Core
771   * @since 12
772   */
773  /**
774   * Indicates native library path.
775   *
776   * @type { string }
777   * @readonly
778   * @syscap SystemCapability.BundleManager.BundleFramework.Core
779   * @crossplatform
780   * @since 20
781   * @arkts 1.1&1.2
782   */
783  readonly nativeLibraryPath: string;
784
785  /**
786   * Indicates the MultiAppMode object of the bundle
787   *
788   * @type { MultiAppMode }
789   * @readonly
790   * @syscap SystemCapability.BundleManager.BundleFramework.Core
791   * @since arkts {'1.1':'12', '1.2':'20'}
792   * @arkts 1.1&1.2
793   */
794  readonly multiAppMode: MultiAppMode;
795
796  /**
797   * Indicates the index of the bundle
798   *
799   * @type { number }
800   * @readonly
801   * @syscap SystemCapability.BundleManager.BundleFramework.Core
802   * @since arkts {'1.1':'12', '1.2':'20'}
803   * @arkts 1.1&1.2
804   */
805  readonly appIndex: number;
806
807  /**
808   * Indicates sources to install the app
809   *
810   * @type { string }
811   * @readonly
812   * @syscap SystemCapability.BundleManager.BundleFramework.Core
813   * @atomicservice
814   * @since arkts {'1.1':'12', '1.2':'20'}
815   * @arkts 1.1&1.2
816   */
817  readonly installSource: string;
818
819  /**
820   * Indicates the release type of the app
821   *
822   * @type { string }
823   * @readonly
824   * @syscap SystemCapability.BundleManager.BundleFramework.Core
825   * @atomicservice
826   * @since 12
827   */
828  /**
829   * Indicates the release type of the app
830   *
831   * @type { string }
832   * @readonly
833   * @syscap SystemCapability.BundleManager.BundleFramework.Core
834   * @crossplatform
835   * @atomicservice
836   * @since 20
837   * @arkts 1.1&1.2
838   */
839  readonly releaseType: string;
840
841  /**
842   * Indicates whether the application enables cloud file sync.
843   *
844   * @type { boolean }
845   * @readonly
846   * @syscap SystemCapability.BundleManager.BundleFramework.Core
847   * @atomicservice
848   * @since arkts {'1.1':'12', '1.2':'20'}
849   * @arkts 1.1&1.2
850   */
851  readonly cloudFileSyncEnabled: boolean;
852
853  /**
854   * Indicates whether the application enables cloud structured data sync.
855   *
856   * @type { ?boolean }
857   * @readonly
858   * @syscap SystemCapability.BundleManager.BundleFramework.Core
859   * @atomicservice
860   * @since 20
861   * @arkts 1.1&1.2
862   */
863  readonly cloudStructuredDataSyncEnabled?: boolean;
864
865  /**
866   * Indicates the flags of the application.
867   *
868   * @type { ?number }
869   * @readonly
870   * @syscap SystemCapability.BundleManager.BundleFramework.Core
871   * @systemapi
872   * @since arkts {'1.1':'12', '1.2':'20'}
873   * @arkts 1.1&1.2
874   */
875  readonly flags?: number;
876}
877
878/**
879 * Indicates the ModuleMetadata
880 *
881 * @typedef ModuleMetadata
882 * @syscap SystemCapability.BundleManager.BundleFramework.Core
883 * @since 10
884 */
885/**
886 * Indicates the ModuleMetadata
887 *
888 * @typedef ModuleMetadata
889 * @syscap SystemCapability.BundleManager.BundleFramework.Core
890 * @atomicservice
891 * @since 11
892 */
893/**
894 * Indicates the ModuleMetadata
895 *
896 * @typedef ModuleMetadata
897 * @syscap SystemCapability.BundleManager.BundleFramework.Core
898 * @crossplatform
899 * @atomicservice
900 * @since 20
901 * @arkts 1.1&1.2
902 */
903export interface ModuleMetadata {
904  /**
905   * Indicates the name of this hap module
906   *
907   * @type { string }
908   * @readonly
909   * @syscap SystemCapability.BundleManager.BundleFramework.Core
910   * @since 10
911   */
912  /**
913   * Indicates the name of this hap module
914   *
915   * @type { string }
916   * @readonly
917   * @syscap SystemCapability.BundleManager.BundleFramework.Core
918   * @atomicservice
919   * @since 11
920   */
921  /**
922   * Indicates the name of this hap module
923   *
924   * @type { string }
925   * @readonly
926   * @syscap SystemCapability.BundleManager.BundleFramework.Core
927   * @crossplatform
928   * @atomicservice
929   * @since 20
930   * @arkts 1.1&1.2
931   */
932  readonly moduleName: string;
933
934  /**
935   * Indicates the metadata of this hap module
936   *
937   * @type { Array<Metadata> }
938   * @readonly
939   * @syscap SystemCapability.BundleManager.BundleFramework.Core
940   * @since 10
941   */
942  /**
943   * Indicates the metadata of this hap module
944   *
945   * @type { Array<Metadata> }
946   * @readonly
947   * @syscap SystemCapability.BundleManager.BundleFramework.Core
948   * @atomicservice
949   * @since 11
950   */
951  /**
952   * Indicates the metadata of this hap module
953   *
954   * @type { Array<Metadata> }
955   * @readonly
956   * @syscap SystemCapability.BundleManager.BundleFramework.Core
957   * @crossplatform
958   * @atomicservice
959   * @since 20
960   * @arkts 1.1&1.2
961   */
962  readonly metadata: Array<Metadata>;
963}
964
965/**
966 * Indicates MultiAppMode
967 *
968 * @typedef MultiAppMode
969 * @syscap SystemCapability.BundleManager.BundleFramework.Core
970 * @since arkts {'1.1':'12', '1.2':'20'}
971 * @arkts 1.1&1.2
972 */
973export interface MultiAppMode {
974  /**
975   * Indicates the multiAppModeType of the bundle
976   *
977   * @type { bundleManager.MultiAppModeType }
978   * @readonly
979   * @syscap SystemCapability.BundleManager.BundleFramework.Core
980   * @since arkts {'1.1':'12', '1.2':'20'}
981   * @arkts 1.1&1.2
982   */
983  readonly multiAppModeType: bundleManager.MultiAppModeType;
984
985  /**
986   * Indicates the max count of the bundle
987   *
988   * @type { number }
989   * @readonly
990   * @syscap SystemCapability.BundleManager.BundleFramework.Core
991   * @since arkts {'1.1':'12', '1.2':'20'}
992   * @arkts 1.1&1.2
993   */
994  readonly maxCount: number;
995}
996
997/**
998 * Indicates the information of preinstalled application
999 *
1000 * @typedef PreinstalledApplicationInfo
1001 * @syscap SystemCapability.BundleManager.BundleFramework.Core
1002 * @systemapi
1003 * @since arkts {'1.1':'12', '1.2':'20'}
1004 * @arkts 1.1&1.2
1005 */
1006export interface PreinstalledApplicationInfo {
1007
1008  /**
1009   * Indicates the name of this bundle
1010   *
1011   * @type { string }
1012   * @readonly
1013   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1014   * @systemapi
1015   * @since arkts {'1.1':'12', '1.2':'20'}
1016   * @arkts 1.1&1.2
1017   */
1018  readonly bundleName: string;
1019
1020  /**
1021   * Indicates the name of module
1022   *
1023   * @type { string }
1024   * @readonly
1025   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1026   * @systemapi
1027   * @since arkts {'1.1':'12', '1.2':'20'}
1028   * @arkts 1.1&1.2
1029   */
1030  readonly moduleName: string;
1031
1032  /**
1033   * Indicates the icon id of the application
1034   *
1035   * @type { number }
1036   * @readonly
1037   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1038   * @systemapi
1039   * @since arkts {'1.1':'12', '1.2':'20'}
1040   * @arkts 1.1&1.2
1041   */
1042  readonly iconId: number;
1043
1044  /**
1045   * Indicates the label id of the application
1046   *
1047   * @type { number }
1048   * @readonly
1049   * @syscap SystemCapability.BundleManager.BundleFramework.Core
1050   * @systemapi
1051   * @since arkts {'1.1':'12', '1.2':'20'}
1052   * @arkts 1.1&1.2
1053   */
1054  readonly labelId: number;
1055}