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 { ApplicationInfo } from './ApplicationInfo'; 22import { HapModuleInfo, RouterItem } from './HapModuleInfo'; 23import bundleManager from './../@ohos.bundle.bundleManager'; 24 25/** 26 * Obtains configuration information about a bundle 27 * 28 * @typedef BundleInfo 29 * @syscap SystemCapability.BundleManager.BundleFramework.Core 30 * @since 9 31 */ 32/** 33 * Obtains configuration information about a bundle 34 * 35 * @typedef BundleInfo 36 * @syscap SystemCapability.BundleManager.BundleFramework.Core 37 * @atomicservice 38 * @since 11 39 */ 40/** 41 * Obtains configuration information about a bundle 42 * 43 * @typedef BundleInfo 44 * @syscap SystemCapability.BundleManager.BundleFramework.Core 45 * @crossplatform 46 * @atomicservice 47 * @since 20 48 * @arkts 1.1&1.2 49 */ 50export interface BundleInfo { 51 /** 52 * Indicates the name of this bundle 53 * 54 * @type { string } 55 * @readonly 56 * @syscap SystemCapability.BundleManager.BundleFramework.Core 57 * @since 9 58 */ 59 /** 60 * Indicates the name of this bundle 61 * 62 * @type { string } 63 * @readonly 64 * @syscap SystemCapability.BundleManager.BundleFramework.Core 65 * @atomicservice 66 * @since 11 67 */ 68 /** 69 * Indicates the name of this bundle 70 * 71 * @type { string } 72 * @readonly 73 * @syscap SystemCapability.BundleManager.BundleFramework.Core 74 * @crossplatform 75 * @atomicservice 76 * @since 20 77 * @arkts 1.1&1.2 78 */ 79 readonly name: string; 80 81 /** 82 * Indicates the bundle vendor 83 * 84 * @type { string } 85 * @readonly 86 * @syscap SystemCapability.BundleManager.BundleFramework.Core 87 * @since 9 88 */ 89 /** 90 * Indicates the bundle vendor 91 * 92 * @type { string } 93 * @readonly 94 * @syscap SystemCapability.BundleManager.BundleFramework.Core 95 * @atomicservice 96 * @since 11 97 */ 98 /** 99 * Indicates the bundle vendor 100 * 101 * @type { string } 102 * @readonly 103 * @syscap SystemCapability.BundleManager.BundleFramework.Core 104 * @crossplatform 105 * @atomicservice 106 * @since 20 107 * @arkts 1.1&1.2 108 */ 109 readonly vendor: string; 110 111 /** 112 * Indicates the version code of the bundle 113 * 114 * @type { number } 115 * @readonly 116 * @syscap SystemCapability.BundleManager.BundleFramework.Core 117 * @since 9 118 */ 119 /** 120 * Indicates the version code of the bundle 121 * 122 * @type { number } 123 * @readonly 124 * @syscap SystemCapability.BundleManager.BundleFramework.Core 125 * @atomicservice 126 * @since 11 127 */ 128 /** 129 * Indicates the version code of the bundle 130 * 131 * @type { number } 132 * @readonly 133 * @syscap SystemCapability.BundleManager.BundleFramework.Core 134 * @crossplatform 135 * @atomicservice 136 * @since 20 137 * @arkts 1.1&1.2 138 */ 139 readonly versionCode: number; 140 141 /** 142 * Indicates the version name of the bundle 143 * 144 * @type { string } 145 * @readonly 146 * @syscap SystemCapability.BundleManager.BundleFramework.Core 147 * @since 9 148 */ 149 /** 150 * Indicates the version name of the bundle 151 * 152 * @type { string } 153 * @readonly 154 * @syscap SystemCapability.BundleManager.BundleFramework.Core 155 * @atomicservice 156 * @since 11 157 */ 158 /** 159 * Indicates the version name of the bundle 160 * 161 * @type { string } 162 * @readonly 163 * @syscap SystemCapability.BundleManager.BundleFramework.Core 164 * @crossplatform 165 * @atomicservice 166 * @since 20 167 * @arkts 1.1&1.2 168 */ 169 readonly versionName: string; 170 171 /** 172 * Indicates the **minimum ** version compatible with the bundle 173 * 174 * @type { number } 175 * @readonly 176 * @syscap SystemCapability.BundleManager.BundleFramework.Core 177 * @since 9 178 */ 179 /** 180 * Indicates the **minimum ** version compatible with the bundle 181 * 182 * @type { number } 183 * @readonly 184 * @syscap SystemCapability.BundleManager.BundleFramework.Core 185 * @atomicservice 186 * @since 11 187 */ 188 /** 189 * Indicates the **minimum ** version compatible with the bundle 190 * 191 * @type { number } 192 * @readonly 193 * @syscap SystemCapability.BundleManager.BundleFramework.Core 194 * @crossplatform 195 * @atomicservice 196 * @since 20 197 * @arkts 1.1&1.2 198 */ 199 readonly minCompatibleVersionCode: number; 200 201 /** 202 * Indicates the target version number of the bundle 203 * 204 * @type { number } 205 * @readonly 206 * @syscap SystemCapability.BundleManager.BundleFramework.Core 207 * @since 9 208 */ 209 /** 210 * Indicates the target version number of the bundle 211 * 212 * @type { number } 213 * @readonly 214 * @syscap SystemCapability.BundleManager.BundleFramework.Core 215 * @atomicservice 216 * @since 11 217 */ 218 /** 219 * Indicates the target version number of the bundle 220 * 221 * @type { number } 222 * @readonly 223 * @syscap SystemCapability.BundleManager.BundleFramework.Core 224 * @crossplatform 225 * @atomicservice 226 * @since 20 227 * @arkts 1.1&1.2 228 */ 229 readonly targetVersion: number; 230 231 /** 232 * Obtains configuration information about an application 233 * 234 * @type { ApplicationInfo } 235 * @readonly 236 * @syscap SystemCapability.BundleManager.BundleFramework.Core 237 * @since 9 238 */ 239 /** 240 * Obtains configuration information about an application 241 * 242 * @type { ApplicationInfo } 243 * @readonly 244 * @syscap SystemCapability.BundleManager.BundleFramework.Core 245 * @atomicservice 246 * @since 11 247 */ 248 /** 249 * Obtains configuration information about an application 250 * 251 * @type { ApplicationInfo } 252 * @readonly 253 * @syscap SystemCapability.BundleManager.BundleFramework.Core 254 * @crossplatform 255 * @atomicservice 256 * @since 20 257 * @arkts 1.1&1.2 258 */ 259 readonly appInfo: ApplicationInfo; 260 261 /** 262 * Obtains configuration information about a module 263 * 264 * @type { Array<HapModuleInfo> } 265 * @readonly 266 * @syscap SystemCapability.BundleManager.BundleFramework.Core 267 * @since 9 268 */ 269 /** 270 * Obtains configuration information about a module 271 * 272 * @type { Array<HapModuleInfo> } 273 * @readonly 274 * @syscap SystemCapability.BundleManager.BundleFramework.Core 275 * @atomicservice 276 * @since 11 277 */ 278 /** 279 * Obtains configuration information about a module 280 * 281 * @type { Array<HapModuleInfo> } 282 * @readonly 283 * @syscap SystemCapability.BundleManager.BundleFramework.Core 284 * @crossplatform 285 * @atomicservice 286 * @since 20 287 * @arkts 1.1&1.2 288 */ 289 readonly hapModulesInfo: Array<HapModuleInfo>; 290 291 /** 292 * Indicates the required permissions details defined in the bundle 293 * 294 * @type { Array<ReqPermissionDetail> } 295 * @readonly 296 * @syscap SystemCapability.BundleManager.BundleFramework.Core 297 * @since 9 298 */ 299 /** 300 * Indicates the required permissions details defined in the bundle 301 * 302 * @type { Array<ReqPermissionDetail> } 303 * @readonly 304 * @syscap SystemCapability.BundleManager.BundleFramework.Core 305 * @atomicservice 306 * @since 11 307 */ 308 /** 309 * Indicates the required permissions details defined in the bundle 310 * 311 * @type { Array<ReqPermissionDetail> } 312 * @readonly 313 * @syscap SystemCapability.BundleManager.BundleFramework.Core 314 * @crossplatform 315 * @atomicservice 316 * @since 20 317 * @arkts 1.1&1.2 318 */ 319 readonly reqPermissionDetails: Array<ReqPermissionDetail>; 320 321 /** 322 * Indicates the grant state of required permissions 323 * 324 * @type { Array<bundleManager.PermissionGrantState> } 325 * @readonly 326 * @syscap SystemCapability.BundleManager.BundleFramework.Core 327 * @since 9 328 */ 329 /** 330 * Indicates the grant state of required permissions 331 * 332 * @type { Array<bundleManager.PermissionGrantState> } 333 * @readonly 334 * @syscap SystemCapability.BundleManager.BundleFramework.Core 335 * @atomicservice 336 * @since 11 337 */ 338 /** 339 * Indicates the grant state of required permissions 340 * 341 * @type { Array<bundleManager.PermissionGrantState> } 342 * @readonly 343 * @syscap SystemCapability.BundleManager.BundleFramework.Core 344 * @crossplatform 345 * @atomicservice 346 * @since 20 347 * @arkts 1.1&1.2 348 */ 349 readonly permissionGrantStates: Array<bundleManager.PermissionGrantState>; 350 351 /** 352 * Indicates the SignatureInfo of the bundle 353 * 354 * @type { SignatureInfo } 355 * @readonly 356 * @syscap SystemCapability.BundleManager.BundleFramework.Core 357 * @since 9 358 */ 359 /** 360 * Indicates the SignatureInfo of the bundle 361 * 362 * @type { SignatureInfo } 363 * @readonly 364 * @syscap SystemCapability.BundleManager.BundleFramework.Core 365 * @atomicservice 366 * @since 11 367 */ 368 /** 369 * Indicates the SignatureInfo of the bundle 370 * 371 * @type { SignatureInfo } 372 * @readonly 373 * @syscap SystemCapability.BundleManager.BundleFramework.Core 374 * @crossplatform 375 * @atomicservice 376 * @since 20 377 * @arkts 1.1&1.2 378 */ 379 readonly signatureInfo: SignatureInfo; 380 381 /** 382 * Indicates the hap install time 383 * 384 * @type { number } 385 * @readonly 386 * @syscap SystemCapability.BundleManager.BundleFramework.Core 387 * @since 9 388 */ 389 /** 390 * Indicates the hap install time 391 * 392 * @type { number } 393 * @readonly 394 * @syscap SystemCapability.BundleManager.BundleFramework.Core 395 * @atomicservice 396 * @since arkts {'1.1':'11', '1.2':'20'} 397 * @arkts 1.1&1.2 398 */ 399 readonly installTime: number; 400 401 /** 402 * Indicates the hap update time 403 * 404 * @type { number } 405 * @readonly 406 * @syscap SystemCapability.BundleManager.BundleFramework.Core 407 * @since 9 408 */ 409 /** 410 * Indicates the hap update time 411 * 412 * @type { number } 413 * @readonly 414 * @syscap SystemCapability.BundleManager.BundleFramework.Core 415 * @atomicservice 416 * @since arkts {'1.1':'11', '1.2':'20'} 417 * @arkts 1.1&1.2 418 */ 419 readonly updateTime: number; 420 421 /** 422 * Indicates the router information of the application 423 * 424 * @type { Array<RouterItem> } 425 * @readonly 426 * @syscap SystemCapability.BundleManager.BundleFramework.Core 427 * @atomicservice 428 * @since arkts {'1.1':'12', '1.2':'20'} 429 * @arkts 1.1&1.2 430 */ 431 readonly routerMap: Array<RouterItem>; 432 433 /** 434 * Indicates the appIndex of application, only work in appClone mode 435 * 436 * @type { number } 437 * @readonly 438 * @syscap SystemCapability.BundleManager.BundleFramework.Core 439 * @since arkts {'1.1':'12', '1.2':'20'} 440 * @arkts 1.1&1.2 441 */ 442 readonly appIndex: number; 443 444 /** 445 * Indicates the hap first install time 446 * 447 * @type { ?number } 448 * @readonly 449 * @syscap SystemCapability.BundleManager.BundleFramework.Core 450 * @atomicservice 451 * @since arkts {'1.1':'18', '1.2':'20'} 452 * @arkts 1.1&1.2 453 */ 454 readonly firstInstallTime?: number; 455} 456 457/** 458 * Indicates the required permissions details defined in configuration file 459 * 460 * @typedef ReqPermissionDetail 461 * @syscap SystemCapability.BundleManager.BundleFramework.Core 462 * @since 9 463 */ 464/** 465 * Indicates the required permissions details defined in configuration file 466 * 467 * @typedef ReqPermissionDetail 468 * @syscap SystemCapability.BundleManager.BundleFramework.Core 469 * @atomicservice 470 * @since 11 471 */ 472/** 473 * Indicates the required permissions details defined in configuration file 474 * 475 * @typedef ReqPermissionDetail 476 * @syscap SystemCapability.BundleManager.BundleFramework.Core 477 * @crossplatform 478 * @atomicservice 479 * @since 20 480 * @arkts 1.1&1.2 481 */ 482export interface ReqPermissionDetail { 483 /** 484 * Indicates the name of this required permissions 485 * 486 * @type { string } 487 * @syscap SystemCapability.BundleManager.BundleFramework.Core 488 * @since 9 489 */ 490 /** 491 * Indicates the name of this required permissions 492 * 493 * @type { string } 494 * @syscap SystemCapability.BundleManager.BundleFramework.Core 495 * @atomicservice 496 * @since 11 497 */ 498 /** 499 * Indicates the name of this required permissions 500 * 501 * @type { string } 502 * @syscap SystemCapability.BundleManager.BundleFramework.Core 503 * @crossplatform 504 * @atomicservice 505 * @since 20 506 * @arkts 1.1&1.2 507 */ 508 name: string; 509 510 /** 511 * Indicates the module name which the request permission belongs 512 * 513 * @type { string } 514 * @syscap SystemCapability.BundleManager.BundleFramework.Core 515 * @since 10 516 */ 517 /** 518 * Indicates the module name which the request permission belongs 519 * 520 * @type { string } 521 * @syscap SystemCapability.BundleManager.BundleFramework.Core 522 * @atomicservice 523 * @since arkts {'1.1':'11', '1.2':'20'} 524 * @arkts 1.1&1.2 525 */ 526 moduleName: string; 527 528 /** 529 * Indicates the reason of this required permissions 530 * 531 * @type { string } 532 * @syscap SystemCapability.BundleManager.BundleFramework.Core 533 * @since 9 534 */ 535 /** 536 * Indicates the reason of this required permissions 537 * 538 * @type { string } 539 * @syscap SystemCapability.BundleManager.BundleFramework.Core 540 * @atomicservice 541 * @since 11 542 */ 543 /** 544 * Indicates the reason of this required permissions 545 * 546 * @type { string } 547 * @syscap SystemCapability.BundleManager.BundleFramework.Core 548 * @crossplatform 549 * @atomicservice 550 * @since 20 551 * @arkts 1.1&1.2 552 */ 553 reason: string; 554 555 /** 556 * Indicates the reason id of this required permissions 557 * 558 * @type { number } 559 * @syscap SystemCapability.BundleManager.BundleFramework.Core 560 * @since 9 561 */ 562 /** 563 * Indicates the reason id of this required permissions 564 * 565 * @type { number } 566 * @syscap SystemCapability.BundleManager.BundleFramework.Core 567 * @atomicservice 568 * @since 11 569 */ 570 /** 571 * Indicates the reason id of this required permissions 572 * 573 * @type { number } 574 * @syscap SystemCapability.BundleManager.BundleFramework.Core 575 * @crossplatform 576 * @atomicservice 577 * @since 20 578 * @arkts 1.1&1.2 579 */ 580 reasonId: number; 581 582 /** 583 * Indicates the used scene of this required permissions 584 * 585 * @type { UsedScene } 586 * @syscap SystemCapability.BundleManager.BundleFramework.Core 587 * @since 9 588 */ 589 /** 590 * Indicates the used scene of this required permissions 591 * 592 * @type { UsedScene } 593 * @syscap SystemCapability.BundleManager.BundleFramework.Core 594 * @atomicservice 595 * @since 11 596 */ 597 /** 598 * Indicates the used scene of this required permissions 599 * 600 * @type { UsedScene } 601 * @syscap SystemCapability.BundleManager.BundleFramework.Core 602 * @crossplatform 603 * @atomicservice 604 * @since 20 605 * @arkts 1.1&1.2 606 */ 607 usedScene: UsedScene; 608} 609 610/** 611 * The scene which is used 612 * 613 * @typedef UsedScene 614 * @syscap SystemCapability.BundleManager.BundleFramework.Core 615 * @since 9 616 */ 617/** 618 * The scene which is used 619 * 620 * @typedef UsedScene 621 * @syscap SystemCapability.BundleManager.BundleFramework.Core 622 * @atomicservice 623 * @since 11 624 */ 625/** 626 * The scene which is used 627 * 628 * @typedef UsedScene 629 * @syscap SystemCapability.BundleManager.BundleFramework.Core 630 * @crossplatform 631 * @atomicservice 632 * @since 20 633 * @arkts 1.1&1.2 634 */ 635export interface UsedScene { 636 /** 637 * Indicates the abilities that need the permission 638 * 639 * @type { Array<string> } 640 * @syscap SystemCapability.BundleManager.BundleFramework.Core 641 * @since 9 642 */ 643 /** 644 * Indicates the abilities that need the permission 645 * 646 * @type { Array<string> } 647 * @syscap SystemCapability.BundleManager.BundleFramework.Core 648 * @atomicservice 649 * @since 11 650 */ 651 /** 652 * Indicates the abilities that need the permission 653 * 654 * @type { Array<string> } 655 * @syscap SystemCapability.BundleManager.BundleFramework.Core 656 * @crossplatform 657 * @atomicservice 658 * @since 20 659 * @arkts 1.1&1.2 660 */ 661 abilities: Array<string>; 662 663 /** 664 * Indicates the time when the permission is used 665 * 666 * @type { string } 667 * @syscap SystemCapability.BundleManager.BundleFramework.Core 668 * @since 9 669 */ 670 /** 671 * Indicates the time when the permission is used 672 * 673 * @type { string } 674 * @syscap SystemCapability.BundleManager.BundleFramework.Core 675 * @atomicservice 676 * @since 11 677 */ 678 /** 679 * Indicates the time when the permission is used 680 * 681 * @type { string } 682 * @syscap SystemCapability.BundleManager.BundleFramework.Core 683 * @crossplatform 684 * @atomicservice 685 * @since 20 686 * @arkts 1.1&1.2 687 */ 688 when: string; 689} 690 691/** 692 * Indicates SignatureInfo 693 * 694 * @typedef SignatureInfo 695 * @syscap SystemCapability.BundleManager.BundleFramework.Core 696 * @since 9 697 */ 698/** 699 * Indicates SignatureInfo 700 * 701 * @typedef SignatureInfo 702 * @syscap SystemCapability.BundleManager.BundleFramework.Core 703 * @atomicservice 704 * @since 11 705 */ 706/** 707 * Indicates SignatureInfo 708 * 709 * @typedef SignatureInfo 710 * @syscap SystemCapability.BundleManager.BundleFramework.Core 711 * @crossplatform 712 * @atomicservice 713 * @since 20 714 * @arkts 1.1&1.2 715 */ 716export interface SignatureInfo { 717 /** 718 * Indicates the ID of the application to which this bundle belongs 719 * The application ID uniquely identifies an application. It is determined by the bundle name and signature 720 * 721 * @type { string } 722 * @readonly 723 * @syscap SystemCapability.BundleManager.BundleFramework.Core 724 * @since 9 725 */ 726 /** 727 * Indicates the ID of the application to which this bundle belongs 728 * The application ID uniquely identifies an application. It is determined by the bundle name and signature 729 * 730 * @type { string } 731 * @readonly 732 * @syscap SystemCapability.BundleManager.BundleFramework.Core 733 * @atomicservice 734 * @since 11 735 */ 736 /** 737 * Indicates the ID of the application to which this bundle belongs 738 * The application ID uniquely identifies an application. It is determined by the bundle name and signature 739 * 740 * @type { string } 741 * @readonly 742 * @syscap SystemCapability.BundleManager.BundleFramework.Core 743 * @crossplatform 744 * @atomicservice 745 * @since 20 746 * @arkts 1.1&1.2 747 */ 748 readonly appId: string; 749 750 /** 751 * Indicates the fingerprint of the certificate 752 * 753 * @type { string } 754 * @readonly 755 * @syscap SystemCapability.BundleManager.BundleFramework.Core 756 * @since 9 757 */ 758 /** 759 * Indicates the fingerprint of the certificate 760 * 761 * @type { string } 762 * @readonly 763 * @syscap SystemCapability.BundleManager.BundleFramework.Core 764 * @atomicservice 765 * @since 11 766 */ 767 /** 768 * Indicates the fingerprint of the certificate 769 * 770 * @type { string } 771 * @readonly 772 * @syscap SystemCapability.BundleManager.BundleFramework.Core 773 * @crossplatform 774 * @atomicservice 775 * @since 20 776 * @arkts 1.1&1.2 777 */ 778 readonly fingerprint: string; 779 780 /** 781 * Globally unique identifier of an application, which is allocated by the cloud. 782 * AppIdentifier does not change along the application lifecycle, including version updates, certificate changes, 783 * public and private key changes, and application transfer. 784 * 785 * @type { string } 786 * @readonly 787 * @syscap SystemCapability.BundleManager.BundleFramework.Core 788 * @atomicservice 789 * @since arkts {'1.1':'11', '1.2':'20'} 790 * @arkts 1.1&1.2 791 */ 792 readonly appIdentifier: string; 793 794 /** 795 * Indicates the certificate 796 * 797 * @type { ?string } 798 * @readonly 799 * @syscap SystemCapability.BundleManager.BundleFramework.Core 800 * @atomicservice 801 * @since arkts {'1.1':'14', '1.2':'20'} 802 * @arkts 1.1&1.2 803 */ 804 readonly certificate?: string; 805} 806 807/** 808 * AppCloneIdentity contains BundleName and appIndex 809 * 810 * @typedef AppCloneIdentity 811 * @syscap SystemCapability.BundleManager.BundleFramework.Core 812 * @since arkts {'1.1':'14', '1.2':'20'} 813 * @arkts 1.1&1.2 814 */ 815export interface AppCloneIdentity { 816 /** 817 * Indicates the application bundle name to be queried. 818 * 819 * @type { string } 820 * @readonly 821 * @syscap SystemCapability.BundleManager.BundleFramework.Core 822 * @since arkts {'1.1':'14', '1.2':'20'} 823 * @arkts 1.1&1.2 824 */ 825 readonly bundleName: string; 826 /** 827 * Indicates the index of clone app. 828 * 829 * @type { number } 830 * @readonly 831 * @syscap SystemCapability.BundleManager.BundleFramework.Core 832 * @since arkts {'1.1':'14', '1.2':'20'} 833 * @arkts 1.1&1.2 834 */ 835 readonly appIndex: number; 836} 837 838/** 839 * Obtains dynamic icon information about a bundle 840 * 841 * @typedef DynamicIconInfo 842 * @syscap SystemCapability.BundleManager.BundleFramework.Core 843 * @systemapi 844 * @since 20 845 */ 846export interface DynamicIconInfo { 847 /** 848 * Indicates the name of the bundle. 849 * 850 * @type { string } 851 * @readonly 852 * @syscap SystemCapability.BundleManager.BundleFramework.Core 853 * @systemapi 854 * @since 20 855 */ 856 readonly bundleName: string; 857 858 /** 859 * Indicates the name of the dynamic icon. 860 * 861 * @type { string } 862 * @readonly 863 * @syscap SystemCapability.BundleManager.BundleFramework.Core 864 * @systemapi 865 * @since 20 866 */ 867 readonly moduleName: string; 868 869 /** 870 * Indicates the user id of the bundle. 871 * 872 * @type { number } 873 * @readonly 874 * @syscap SystemCapability.BundleManager.BundleFramework.Core 875 * @systemapi 876 * @since 20 877 */ 878 readonly userId: number; 879 880 /** 881 * Indicates the index of the bundle. 882 * 883 * @type { number } 884 * @readonly 885 * @syscap SystemCapability.BundleManager.BundleFramework.Core 886 * @systemapi 887 * @since 20 888 */ 889 readonly appIndex: number; 890} 891 892/** 893 * The bundle options of bundle manager 894 * 895 * @typedef BundleOptions 896 * @syscap SystemCapability.BundleManager.BundleFramework.Core 897 * @systemapi 898 * @since 20 899 */ 900export interface BundleOptions { 901 /** 902 * Indicates the user id. 903 * 904 * @type { ?number } 905 * @syscap SystemCapability.BundleManager.BundleFramework.Core 906 * @systemapi 907 * @since 20 908 */ 909 userId?: number; 910 911 /** 912 * Indicates the app index. 913 * 914 * @type { ?number } 915 * @syscap SystemCapability.BundleManager.BundleFramework.Core 916 * @systemapi 917 * @since 20 918 */ 919 appIndex?: number; 920} 921