harmony 鸿蒙ApplicationInfo (System API)

  • 2025-06-12
  • 浏览 (3)

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.

Name Type Read-Only Optional Description
flags12+ number Yes Yes Status 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.

Name Type Read-Only Optional Description
bundleName string Yes No Bundle name of the application.
moduleName string Yes No Module 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.
iconId number Yes No Icon ID of the application.
labelId number Yes No Label 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

0  赞