1e41f4b71Sopenharmony_ci# ApplicationInfo (系统接口) 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci应用程序信息,三方应用可以通过bundleManager.getBundleInfoForSelf获取自身的应用程序信息,其中入参bundleFlags至少包含GETBUNDLEINFOWITHAPPLICATION。 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **说明:** 6e41f4b71Sopenharmony_ci> 7e41f4b71Sopenharmony_ci> 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 8e41f4b71Sopenharmony_ci> 9e41f4b71Sopenharmony_ci> 当前页面仅包含本模块的系统接口,其他公开接口参见([ApplicationInfo](js-apis-bundleManager-applicationInfo.md))。 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci## ApplicationInfo 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.Core。 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci| 名称 | 类型 | 只读 | 可选 | 说明 | 18e41f4b71Sopenharmony_ci| --------- | -------------- | ---- | ---- | --------------------------- | 19e41f4b71Sopenharmony_ci| flags<sup>12+</sup> | number | 是 | 是 | 标识当前应用和当前用户之间的状态集合,每一位表示一个特定的布尔状态。<br/>**系统API:** 从API version 12开始,该接口支持在系统API中使用。 | 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci 22e41f4b71Sopenharmony_ci## PreinstalledApplicationInfo<sup>12+<sup> 23e41f4b71Sopenharmony_ci 24e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.Core。 25e41f4b71Sopenharmony_ci 26e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci| 名称 | 类型 | 只读 | 可选 | 说明 | 29e41f4b71Sopenharmony_ci| --------- | -------------- | ---- | ---- | --------------------------- | 30e41f4b71Sopenharmony_ci| bundleName | string | 是 | 否 | 应用包的名称。 | 31e41f4b71Sopenharmony_ci| moduleName | string | 是 | 否 | 应用包的模块名,返回entry模块的moduleName,若不存在entry模块则返回feature模块的moduleName。 | 32e41f4b71Sopenharmony_ci| iconId | number | 是 | 否 | 应用图标Id。 | 33e41f4b71Sopenharmony_ci| labelId | number | 是 | 否 | 应用标签Id。 |