openharmony 鸿蒙 js-apidiff-bundle

2023-02-03 浏览 (713)

JS API Changes of the Bundle Management Framework

The table below lists the APIs changes of the bundle management framework in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1.

API Changes

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
abilityInfoAbilityInforeadonly minWindowHeight: number;Added
abilityInfoAbilityInforeadonly maxWindowHeight: number;Added
abilityInfoAbilityInforeadonly minWindowWidth: number;Added
abilityInfoAbilityInforeadonly maxWindowWidth: number;Added
abilityInfoAbilityInforeadonly minWindowRatio: number;Added
abilityInfoAbilityInforeadonly maxWindowRatio: number;Added
abilityInfoAbilityInforeadonly supportWindowMode: Array<bundle.SupportWindowMode>;Added
bundleInstallerInstallParamcrowdtestDeadline?: number;Added
bundleInstallerInstallParamhashParams?: Array<HashParam>;Added
bundleInstallerHashParamhashValue: string;Added
bundleInstallerHashParammoduleName: string;Added
dispatchInfoDispatchInforeadonly dispatchAPI: string;Added
dispatchInfoDispatchInforeadonly verison: string;Added
hapModuleInfoHapModuleInforeadonly hashValue: string;Added
ohos.bundlebundlegetDisposedStatus(bundleName: string, callback: AsyncCallback<number>): void;
getDisposedStatus(bundleName: string): Promise<number>;
Added
ohos.bundlebundlesetDisposedStatus(bundleName: string, status: number, callback: AsyncCallback<void>): void;
setDisposedStatus(bundleName: string, status: number): Promise<void>;
Added
ohos.bundlebundlegetProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName: string, callback: AsyncCallback<Array<string>>): void;
getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, metadataName?: string): Promise<Array<string>>;
Added
ohos.bundlebundlegetProfileByAbility(moduleName: string, abilityName: string, metadataName: string, callback: AsyncCallback<Array<string>>): void;
getProfileByAbility(moduleName: string, abilityName: string, metadataName?: string): Promise<Array<string>>;
Added
ohos.bundlebundlegetDispatcherVersion(callback: AsyncCallback<DispatchInfo>): void;
getDispatcherVersion(): Promise<DispatchInfo>;
Added
ohos.bundlebundlegetBundlePackInfo(bundleName: string, bundlePackFlag: pack.BundlePackFlag, callback: AsyncCallback<pack.BundlePackInfo>): void;
getBundlePackInfo(bundleName: string, bundlePackFlag: pack.BundlePackFlag): Promise<pack.BundlePackInfo>;
Added
ohos.bundleSupportWindowModeFLOATING = 2Added
ohos.bundleSupportWindowModeSPLIT = 1Added
ohos.bundleSupportWindowModeFULL_SCREEN = 0Added
ohos.bundleExtensionAbilityTypeENTERPRISE_ADMIN = 11Added
ohos.bundleDisplayOrientationLOCKEDAdded
ohos.bundleDisplayOrientationAUTO_ROTATION_PORTRAIT_RESTRICTEDAdded
ohos.bundleDisplayOrientationAUTO_ROTATION_LANDSCAPE_RESTRICTEDAdded
ohos.bundleDisplayOrientationAUTO_ROTATION_RESTRICTEDAdded
ohos.bundleDisplayOrientationAUTO_ROTATION_PORTRAITAdded
ohos.bundleDisplayOrientationAUTO_ROTATION_LANDSCAPEAdded
ohos.bundleDisplayOrientationAUTO_ROTATIONAdded
ohos.bundleDisplayOrientationPORTRAIT_INVERTEDAdded
ohos.bundleDisplayOrientationLANDSCAPE_INVERTEDAdded
ohos.bundleBundleFlagGET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT = 0x00000400Added
ohos.bundleBundleFlagGET_BUNDLE_WITH_HASH_VALUE = 0x00000030Added
ohos.bundle.defaultAppManagerdefaultAppManagerresetDefaultApplication(type: string, userId?: number): Promise<void>;
resetDefaultApplication(type: string, userId: number, callback: AsyncCallback<void>): void;
resetDefaultApplication(type: string, callback: AsyncCallback<void>): void;
Added
ohos.bundle.defaultAppManagerdefaultAppManagersetDefaultApplication(type: string, elementName: ElementName, userId?: number): Promise<void>;
setDefaultApplication(type: string, elementName: ElementName, userId: number, callback: AsyncCallback<void>): void;
setDefaultApplication(type: string, elementName: ElementName, callback: AsyncCallback<void>): void;
Added
ohos.bundle.defaultAppManagerdefaultAppManagergetDefaultApplication(type: string, userId?: number): Promise<BundleInfo>;
getDefaultApplication(type: string, userId: number, callback: AsyncCallback<BundleInfo>): void;
getDefaultApplication(type: string, callback: AsyncCallback<BundleInfo>): void;
Added
ohos.bundle.defaultAppManagerdefaultAppManagerisDefaultApplication(type: string): Promise<boolean>;
isDefaultApplication(type: string, callback: AsyncCallback<boolean>): void;
Added
ohos.bundle.defaultAppManagerApplicationTypePPT = "PPT"Added
ohos.bundle.defaultAppManagerApplicationTypeEXCEL = "EXCEL"Added
ohos.bundle.defaultAppManagerApplicationTypeWORD = "WORD"Added
ohos.bundle.defaultAppManagerApplicationTypePDF = "PDF"Added
ohos.bundle.defaultAppManagerApplicationTypeVIDEO = "VIDEO"Added
ohos.bundle.defaultAppManagerApplicationTypeAUDIO = "AUDIO"Added
ohos.bundle.defaultAppManagerApplicationTypeIMAGE = "IMAGE"Added
ohos.bundle.defaultAppManagerApplicationTypeBROWSER = "BROWSER"Added
packInfoBundlePackFlagGET_MODULE_SUMMARY = 0x00000004Added
packInfoBundlePackFlagGET_BUNDLE_SUMMARY = 0x00000002Added
packInfoBundlePackFlagGET_PACKAGES = 0x00000001Added
packInfoBundlePackFlagGET_PACK_INFO_ALL = 0x00000000Added
packInfoApiVersionreadonly target: number;Added
packInfoApiVersionreadonly compatible: number;Added
packInfoApiVersionreadonly releaseType: string;Added
packInfoVersionreadonly code: number;Added
packInfoVersionreadonly name: string;Added
packInfoVersionreadonly minCompatibleVersionCode: number;Added
packInfoAbilityFormInforeadonly defaultDimension: number;Added
packInfoAbilityFormInforeadonly supportDimensions: Array<number>;Added
packInfoAbilityFormInforeadonly updateDuration: number;Added
packInfoAbilityFormInforeadonly scheduledUpdateTime: string;Added
packInfoAbilityFormInforeadonly updateEnabled: boolean;Added
packInfoAbilityFormInforeadonly type: string;Added
packInfoAbilityFormInforeadonly name: string;Added
packInfoModuleAbilityInforeadonly forms: Array<AbilityFormInfo>;Added
packInfoModuleAbilityInforeadonly visible: boolean;Added
packInfoModuleAbilityInforeadonly label: string;Added
packInfoModuleAbilityInforeadonly name: string;Added
packInfoModuleDistroInforeadonly moduleType: string;Added
packInfoModuleDistroInforeadonly moduleName: string;Added
packInfoModuleDistroInforeadonly installationFree: boolean;Added
packInfoModuleDistroInforeadonly deliveryWithInstall: boolean;Added
packInfoModuleDistroInforeadonly mainAbility: string;Added
packInfoModuleConfigInforeadonly extensionAbilities: Array<ExtensionAbilities>;Added
packInfoModuleConfigInforeadonly abilities: Array<ModuleAbilityInfo>;Added
packInfoModuleConfigInforeadonly distro: ModuleDistroInfo;Added
packInfoModuleConfigInforeadonly deviceType: Array<string>;Added
packInfoModuleConfigInforeadonly apiVersion: ApiVersion;Added
packInfoExtensionAbilitiesreadonly forms: Array<AbilityFormInfo>;Added
packInfoExtensionAbilitiesreadonly name: string;Added
packInfoBundleConfigInforeadonly version: Version;Added
packInfoBundleConfigInforeadonly bundleName: string;Added
packInfoPackageSummaryreadonly modules: Array<ModuleConfigInfo>;Added
packInfoPackageSummaryreadonly app: BundleConfigInfo;Added
packInfoPackageConfigreadonly deliveryWithInstall: boolean;Added
packInfoPackageConfigreadonly moduleType: string;Added
packInfoPackageConfigreadonly name: string;Added
packInfoPackageConfigreadonly deviceType: Array<string>;Added
packInfoBundlePackInforeadonly summary: PackageSummary;Added
packInfoBundlePackInforeadonly packages: Array<PackageConfig>;Added
shortcutInfoShortcutInforeadonly moduleName?: string;Added
shortcutInfoShortcutWantreadonly targetModule: string;Added

你可能感兴趣的鸿蒙文章

harmony 鸿蒙JS API Changes of the Ability Framework

harmony 鸿蒙JS API Changes of the Accessibility Subsystem

harmony 鸿蒙JS API Changes of the Account Subsystem

harmony 鸿蒙JS API Changes of the ArkUI Development Framework

harmony 鸿蒙JS API Changes of the Communication Subsystem

harmony 鸿蒙JS API Changes of the Compiler and Runtime Subsystem

harmony 鸿蒙JS API Changes of the DFX Subsystem

harmony 鸿蒙JS API Changes of the Distributed Data Management Subsystem

harmony 鸿蒙JS API Changes of the Common Event and Notification Subsystem

harmony 鸿蒙JS API Changes of the File Management Subsystem

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/6f77997ef1df41fbaee558674fb6cd15