同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Declares functions used for managing application bundles and obtaining bundle information.
You can use functions provided in this file to install, update, or uninstall an application, obtain AbilityInfo and BundleInfo about an application, obtain the bundle name of an application based on the application's user ID (UID), and obtain BundleInfo objects of all applications or keep-alive applications in the system.
Since:
1.0
Version:
1.0
InstallerCallback) (const uint8_t resultCode, const void *resultMessage) |
Called when an application is installed, updated, or uninstalled. |
RegisterCallback (BundleStatusCallback *BundleStatusCallback) |
Registers a callback to monitor the installation, update, and uninstallation state changes of an application. |
Unregisters a callback previously registered for monitoring the installation, update, and uninstallation state changes of an application. |
|
Install (const char *hapPath, const InstallParam *installParam, InstallerCallback installerCallback) |
|
Uninstall (const char *bundleName, const InstallParam *installParam, InstallerCallback installerCallback) |
|
QueryAbilityInfo (const Want *want, AbilityInfo *abilityInfo) |
Queries the AbilityInfo of an ability based on the information carried in the Want structure. |
GetBundleInfo (const char *bundleName, int32_t flags, BundleInfo *bundleInfo) |
Obtains the BundleInfo of an application based on the specified bundle name. |
GetBundleInfos (const int flags, BundleInfo **bundleInfos, int32_t *len) |
Obtains the BundleInfo of all bundles in the system. |
QueryKeepAliveBundleInfos (BundleInfo **bundleInfos, int32_t *len) |
Obtains the BundleInfo of all keep-alive applications in the system. |
GetBundleInfosByMetaData (const char *metaDataKey, BundleInfo **bundleInfos, int32_t *len) |
Obtains the BundleInfo of application bundles based on the specified MetaData. |
GetBundleNameForUid (int32_t uid, char **bundleName) |
Obtains the bundle name of an application based on the specified UID. |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。