• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# BundleStatusCallback
2
3The **BundleStatusCallback** module provides callbacks for bundle status changes. The changes can be obtained through [innerBundleManager.on](js-apis-Bundle-InnerBundleManager.md).
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9
10## BundleStatusCallback<sup>(deprecated)<sup>
11> This API is deprecated since API version 9. You are advised to use [bundleMonitor](js-apis-bundleMonitor.md) instead.
12
13**System API**: This is a system API and cannot be called by third-party applications.
14
15**System capability**: SystemCapability.BundleManager.BundleFramework
16
17| Type  | Callback                                         | Description                                  |
18| ------ | --------------------------------------------- | -------------------------------------- |
19| add    | (bundleName : string, userId: number) => void | Used to obtain information when a bundle is installed.|
20| update | (bundleName : string, userId: number) => void | Used to obtain information when a bundle is updated.|
21| remove | (bundleName : string, userId: number) => void | Used to obtain information when a bundle is uninstalled.|
22