openharmony 鸿蒙 js-apis-bundleManager-ApplicationInfo-sys

2025-06-12 浏览 (1)

ApplicationInfo (System API)

The ApplicationInfo module defines the application information. A third-party application can obtain its own application information through bundleManager.getBundleInfoForSelf, with GET_BUNDLE_INFO_WITH_APPLICATION passed in to bundleFlags.

NOTE

The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.

This topic describes only system APIs provided by the module. For details about its public APIs, see ApplicationInfo.

ApplicationInfo

System capability: SystemCapability.BundleManager.BundleFramework.Core

System API: This is a system API.

NameTypeRead-OnlyOptionalDescription
flags12+numberYesYesStatus set between the current application and the current user. Each bit indicates a specific Boolean status. For details about the values, see ApplicationInfoFlag.
System API: This property can be used in system APIs since API version 12.

PreinstalledApplicationInfo12+

System capability: SystemCapability.BundleManager.BundleFramework.Core

System API: This is a system API.

NameTypeRead-OnlyOptionalDescription
bundleNamestringYesNoBundle name of the application.
moduleNamestringYesNoModule name of the application. The value is moduleName configured for the entry module. If the entry module does not exist, the value is moduleName configured for the feature module.
iconIdnumberYesNoIcon ID of the application.
labelIdnumberYesNoLabel ID of the application.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Kit

harmony 鸿蒙AbilityAccessControl

harmony 鸿蒙AbilityBase

harmony 鸿蒙AbilityBase_Element

harmony 鸿蒙AbilityRuntime

harmony 鸿蒙bundle

harmony 鸿蒙OH_NativeBundle_ApplicationInfo

harmony 鸿蒙OH_NativeBundle_ElementName

harmony 鸿蒙ability_access_control.h

harmony 鸿蒙ability_base_common.h

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