harmony 鸿蒙ApplicationInfo (System API)
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 鸿蒙AbilityAccessControl
harmony 鸿蒙OH_NativeBundle_ApplicationInfo
harmony 鸿蒙OH_NativeBundle_ElementName
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦