openharmony 鸿蒙 js-apis-bundle-ApplicationInfo

2025-06-12 浏览 (1)

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

NameTypeRead-OnlyOptionalDescription
namestringYesNoApplication name.
descriptionstringYesNoApplication description.
descriptionIdnumberYesNoID of the application description.
systemAppbooleanYesNoWhether the application is a system application. The value true means that the application is a system application, and false means the opposite.
enabledbooleanYesNoWhether the application is enabled. The value true means that the application is enabled, and false means the opposite.
labelstringYesNoApplication label.
labelIdstringYesNoID of the application label.
iconstringYesNoApplication icon.
iconIdstringYesNoID of the application icon.
processstringYesNoProcess name.
supportedModesnumberYesNoModes supported by the application. Currently, only the drive mode is defined. This attribute applies only to telematics devices.
moduleSourceDirsArray<string>YesNoRelative paths for storing application resources. Do not access resource files using concatenated paths. Use @ohos.resourceManager instead.
permissionsArray<string>YesNoPermissions required for accessing the application.
The value is obtained by passing in GET_APPLICATION_INFO_WITH_PERMISSION to bundle.getApplicationInfo.
moduleInfosArray<ModuleInfo>YesNoApplication module information.
entryDirstringYesNoPath for storing application files. Do not access resource files using concatenated paths. Use @ohos.resourceManager instead.
codePath8+stringYesNoInstallation directory of the application. Do not access resource files using concatenated paths. Use @ohos.resourceManager instead.
metaData8+Map<string, Array<CustomizeData>>YesNoCustom metadata of the application.
The value is obtained by passing in GET_APPLICATION_INFO_WITH_METADATA to bundle.getApplicationInfo.
removable8+booleanYesNoWhether the application is removable. The value true means that the application is removable, and false means the opposite.
accessTokenId8+numberYesNoAccess token ID of the application.
uid8+numberYesNoUID of the application.
entityTypestringYesNoType of the application, for example, gaming, social networking, movies, and news.

你可能感兴趣的鸿蒙文章

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/Y82ECn