1# JS API Changes of the Bundle Management Framework 2 3The table below lists the APIs changes of the bundle management framework in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1. 4 5## API Changes 6 7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| 8|---|---|---|---| 9| abilityInfo | AbilityInfo | readonly minWindowHeight: number; | Added| 10| abilityInfo | AbilityInfo | readonly maxWindowHeight: number; | Added| 11| abilityInfo | AbilityInfo | readonly minWindowWidth: number; | Added| 12| abilityInfo | AbilityInfo | readonly maxWindowWidth: number; | Added| 13| abilityInfo | AbilityInfo | readonly minWindowRatio: number; | Added| 14| abilityInfo | AbilityInfo | readonly maxWindowRatio: number; | Added| 15| abilityInfo | AbilityInfo | readonly supportWindowMode: Array\<bundle.SupportWindowMode>; | Added| 16| bundleInstaller | InstallParam | crowdtestDeadline?: number; | Added| 17| bundleInstaller | InstallParam | hashParams?: Array\<HashParam>; | Added| 18| bundleInstaller | HashParam | hashValue: string; | Added| 19| bundleInstaller | HashParam | moduleName: string; | Added| 20| dispatchInfo | DispatchInfo | readonly dispatchAPI: string; | Added| 21| dispatchInfo | DispatchInfo | readonly verison: string; | Added| 22| hapModuleInfo | HapModuleInfo | readonly hashValue: string; | Added| 23| ohos.bundle | bundle | getDisposedStatus(bundleName: string, callback: AsyncCallback\<number>): void;<br>getDisposedStatus(bundleName: string): Promise\<number>; | Added| 24| ohos.bundle | bundle | setDisposedStatus(bundleName: string, status: number, callback: AsyncCallback\<void>): void;<br>setDisposedStatus(bundleName: string, status: number): Promise\<void>; | Added| 25| ohos.bundle | bundle | getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName: string, callback: AsyncCallback\<Array\<string>>): void;<br>getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName?: string): Promise\<Array\<string>>; | Added| 26| ohos.bundle | bundle | getProfileByAbility(moduleName: string, abilityName: string, metadataName: string, callback: AsyncCallback\<Array\<string>>): void;<br>getProfileByAbility(moduleName: string, abilityName: string, metadataName?: string): Promise\<Array\<string>>; | Added| 27| ohos.bundle | bundle | getDispatcherVersion(callback: AsyncCallback\<DispatchInfo>): void;<br>getDispatcherVersion(): Promise\<DispatchInfo>; | Added| 28| ohos.bundle | bundle | getBundlePackInfo(bundleName: string, bundlePackFlag: pack.BundlePackFlag, callback: AsyncCallback\<pack.BundlePackInfo>): void;<br>getBundlePackInfo(bundleName: string, bundlePackFlag: pack.BundlePackFlag): Promise\<pack.BundlePackInfo>; | Added| 29| ohos.bundle | SupportWindowMode | FLOATING = 2 | Added| 30| ohos.bundle | SupportWindowMode | SPLIT = 1 | Added| 31| ohos.bundle | SupportWindowMode | FULL_SCREEN = 0 | Added| 32| ohos.bundle | ExtensionAbilityType | ENTERPRISE_ADMIN = 11 | Added| 33| ohos.bundle | DisplayOrientation | LOCKED | Added| 34| ohos.bundle | DisplayOrientation | AUTO_ROTATION_PORTRAIT_RESTRICTED | Added| 35| ohos.bundle | DisplayOrientation | AUTO_ROTATION_LANDSCAPE_RESTRICTED | Added| 36| ohos.bundle | DisplayOrientation | AUTO_ROTATION_RESTRICTED | Added| 37| ohos.bundle | DisplayOrientation | AUTO_ROTATION_PORTRAIT | Added| 38| ohos.bundle | DisplayOrientation | AUTO_ROTATION_LANDSCAPE | Added| 39| ohos.bundle | DisplayOrientation | AUTO_ROTATION | Added| 40| ohos.bundle | DisplayOrientation | PORTRAIT_INVERTED | Added| 41| ohos.bundle | DisplayOrientation | LANDSCAPE_INVERTED | Added| 42| ohos.bundle | BundleFlag | GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT = 0x00000400 | Added| 43| ohos.bundle | BundleFlag | GET_BUNDLE_WITH_HASH_VALUE = 0x00000030 | Added| 44| ohos.bundle.defaultAppManager | defaultAppManager | resetDefaultApplication(type: string, userId?: number): Promise\<void>;<br>resetDefaultApplication(type: string, userId: number, callback: AsyncCallback\<void>): void;<br>resetDefaultApplication(type: string, callback: AsyncCallback\<void>): void; | Added| 45| ohos.bundle.defaultAppManager | defaultAppManager | setDefaultApplication(type: string, elementName: ElementName, userId?: number): Promise\<void>;<br>setDefaultApplication(type: string, elementName: ElementName, userId: number, callback: AsyncCallback\<void>): void;<br>setDefaultApplication(type: string, elementName: ElementName, callback: AsyncCallback\<void>): void; | Added| 46| ohos.bundle.defaultAppManager | defaultAppManager | getDefaultApplication(type: string, userId?: number): Promise\<BundleInfo>;<br>getDefaultApplication(type: string, userId: number, callback: AsyncCallback\<BundleInfo>): void;<br>getDefaultApplication(type: string, callback: AsyncCallback\<BundleInfo>): void; | Added| 47| ohos.bundle.defaultAppManager | defaultAppManager | isDefaultApplication(type: string): Promise\<boolean>;<br>isDefaultApplication(type: string, callback: AsyncCallback\<boolean>): void; | Added| 48| ohos.bundle.defaultAppManager | ApplicationType | PPT = "PPT" | Added| 49| ohos.bundle.defaultAppManager | ApplicationType | EXCEL = "EXCEL" | Added| 50| ohos.bundle.defaultAppManager | ApplicationType | WORD = "WORD" | Added| 51| ohos.bundle.defaultAppManager | ApplicationType | PDF = "PDF" | Added| 52| ohos.bundle.defaultAppManager | ApplicationType | VIDEO = "VIDEO" | Added| 53| ohos.bundle.defaultAppManager | ApplicationType | AUDIO = "AUDIO" | Added| 54| ohos.bundle.defaultAppManager | ApplicationType | IMAGE = "IMAGE" | Added| 55| ohos.bundle.defaultAppManager | ApplicationType | BROWSER = "BROWSER" | Added| 56| packInfo | BundlePackFlag | GET_MODULE_SUMMARY = 0x00000004 | Added| 57| packInfo | BundlePackFlag | GET_BUNDLE_SUMMARY = 0x00000002 | Added| 58| packInfo | BundlePackFlag | GET_PACKAGES = 0x00000001 | Added| 59| packInfo | BundlePackFlag | GET_PACK_INFO_ALL = 0x00000000 | Added| 60| packInfo | ApiVersion | readonly target: number; | Added| 61| packInfo | ApiVersion | readonly compatible: number; | Added| 62| packInfo | ApiVersion | readonly releaseType: string; | Added| 63| packInfo | Version | readonly code: number; | Added| 64| packInfo | Version | readonly name: string; | Added| 65| packInfo | Version | readonly minCompatibleVersionCode: number; | Added| 66| packInfo | AbilityFormInfo | readonly defaultDimension: number; | Added| 67| packInfo | AbilityFormInfo | readonly supportDimensions: Array\<number>; | Added| 68| packInfo | AbilityFormInfo | readonly updateDuration: number; | Added| 69| packInfo | AbilityFormInfo | readonly scheduledUpdateTime: string; | Added| 70| packInfo | AbilityFormInfo | readonly updateEnabled: boolean; | Added| 71| packInfo | AbilityFormInfo | readonly type: string; | Added| 72| packInfo | AbilityFormInfo | readonly name: string; | Added| 73| packInfo | ModuleAbilityInfo | readonly forms: Array\<AbilityFormInfo>; | Added| 74| packInfo | ModuleAbilityInfo | readonly visible: boolean; | Added| 75| packInfo | ModuleAbilityInfo | readonly label: string; | Added| 76| packInfo | ModuleAbilityInfo | readonly name: string; | Added| 77| packInfo | ModuleDistroInfo | readonly moduleType: string; | Added| 78| packInfo | ModuleDistroInfo | readonly moduleName: string; | Added| 79| packInfo | ModuleDistroInfo | readonly installationFree: boolean; | Added| 80| packInfo | ModuleDistroInfo | readonly deliveryWithInstall: boolean; | Added| 81| packInfo | ModuleDistroInfo | readonly mainAbility: string; | Added| 82| packInfo | ModuleConfigInfo | readonly extensionAbilities: Array\<ExtensionAbilities>; | Added| 83| packInfo | ModuleConfigInfo | readonly abilities: Array\<ModuleAbilityInfo>; | Added| 84| packInfo | ModuleConfigInfo | readonly distro: ModuleDistroInfo; | Added| 85| packInfo | ModuleConfigInfo | readonly deviceType: Array\<string>; | Added| 86| packInfo | ModuleConfigInfo | readonly apiVersion: ApiVersion; | Added| 87| packInfo | ExtensionAbilities | readonly forms: Array\<AbilityFormInfo>; | Added| 88| packInfo | ExtensionAbilities | readonly name: string; | Added| 89| packInfo | BundleConfigInfo | readonly version: Version; | Added| 90| packInfo | BundleConfigInfo | readonly bundleName: string; | Added| 91| packInfo | PackageSummary | readonly modules: Array\<ModuleConfigInfo>; | Added| 92| packInfo | PackageSummary | readonly app: BundleConfigInfo; | Added| 93| packInfo | PackageConfig | readonly deliveryWithInstall: boolean; | Added| 94| packInfo | PackageConfig | readonly moduleType: string; | Added| 95| packInfo | PackageConfig | readonly name: string; | Added| 96| packInfo | PackageConfig | readonly deviceType: Array\<string>; | Added| 97| packInfo | BundlePackInfo | readonly summary: PackageSummary; | Added| 98| packInfo | BundlePackInfo | readonly packages: Array\<PackageConfig>; | Added| 99| shortcutInfo | ShortcutInfo | readonly moduleName?: string; | Added| 100| shortcutInfo | ShortcutWant | readonly targetModule: string; | Added| 101