harmony 鸿蒙ApplicationInfo
ApplicationInfo
The ApplicationInfo module provides application information. Unless otherwise specified, the information is obtained through bundle.getApplicationInfo.
NOTE
The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
The APIs of this module are deprecated since API version 9. You are advised to use bundleManager-ApplicationInfo instead.
ApplicationInfo(deprecated)
This API is deprecated since API version 9. You are advised to use bundleManager-ApplicationInfo instead.
System capability: SystemCapability.BundleManager.BundleFramework
Name | Type | Read-Only | Optional | Description |
---|---|---|---|---|
name | string | Yes | No | Application name. |
description | string | Yes | No | Application description. |
descriptionId | number | Yes | No | ID of the application description. |
systemApp | boolean | Yes | No | Whether the application is a system application. The value true means that the application is a system application, and false means the opposite. |
enabled | boolean | Yes | No | Whether the application is enabled. The value true means that the application is enabled, and false means the opposite. |
label | string | Yes | No | Application label. |
labelId | string | Yes | No | ID of the application label. |
icon | string | Yes | No | Application icon. |
iconId | string | Yes | No | ID of the application icon. |
process | string | Yes | No | Process name. |
supportedModes | number | Yes | No | Modes supported by the application. Currently, only the drive mode is defined. This attribute applies only to telematics devices. |
moduleSourceDirs | Array<string> | Yes | No | Relative paths for storing application resources. Do not access resource files using concatenated paths. Use @ohos.resourceManager instead. |
permissions | Array<string> | Yes | No | Permissions required for accessing the application. The value is obtained by passing in GET_APPLICATION_INFO_WITH_PERMISSION to bundle.getApplicationInfo. |
moduleInfos | Array<ModuleInfo> | Yes | No | Application module information. |
entryDir | string | Yes | No | Path for storing application files. Do not access resource files using concatenated paths. Use @ohos.resourceManager instead. |
codePath8+ | string | Yes | No | Installation directory of the application. Do not access resource files using concatenated paths. Use @ohos.resourceManager instead. |
metaData8+ | Map<string, Array<CustomizeData>> | Yes | No | Custom metadata of the application. The value is obtained by passing in GET_APPLICATION_INFO_WITH_METADATA to bundle.getApplicationInfo. |
removable8+ | boolean | Yes | No | Whether the application is removable. The value true means that the application is removable, and false means the opposite. |
accessTokenId8+ | number | Yes | No | Access token ID of the application. |
uid8+ | number | Yes | No | UID of the application. |
entityType | string | Yes | No | Type of the application, for example, gaming, social networking, movies, and news. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙AbilityAccessControl
harmony 鸿蒙OH_NativeBundle_ApplicationInfo
harmony 鸿蒙OH_NativeBundle_ElementName
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦