• 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## BundleStatusCallback<sup>(deprecated)<sup>
10> This API is deprecated since API version 9. You are advised to use [bundleMonitor](js-apis-bundleMonitor.md) instead.
11
12**System API**: This is a system API.
13
14**System capability**: SystemCapability.BundleManager.BundleFramework
15
16| Type  | Callback                                         | Description                                  |
17| ------ | --------------------------------------------- | -------------------------------------- |
18| add    | (bundleName : string, userId: number) => void | Used to obtain information when a bundle is installed.|
19| update | (bundleName : string, userId: number) => void | Used to obtain information when a bundle is updated.|
20| remove | (bundleName : string, userId: number) => void | Used to obtain information when a bundle is uninstalled.|
21