diff --git a/en/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md b/en/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md index 99bede315abe0b033c4e5e1bedf127b807245585..5e425b8dd02a0f44841038002447a40b2e08c60c 100644 --- a/en/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundle-ApplicationInfo.md @@ -34,3 +34,4 @@ The **ApplicationInfo** module provides application information. Unless otherwis | removable8+ | boolean | Yes | No | Whether the application is removable. | | accessTokenId8+ | number | Yes | No | Access token ID of the application. | | uid8+ | number | Yes | No | UID of the application. | +| entityType | string | Yes | No | Type of the application, for example, gaming, social networking, movies, and news.| diff --git a/en/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md b/en/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md index ec3b9fa9e3b5fb8ef8107276e889c62e4bc2c278..0dc998a77f81ec3cfb8534009f07ac3e6113af72 100644 --- a/en/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundleManager-applicationInfo.md @@ -9,6 +9,7 @@ The **ApplicationInfo** module defines the application information. A system app ## ApplicationInfo **System capability**: SystemCapability.BundleManager.BundleFramework.Core + | Name | Type | Readable| Writable| Description | | -------------------------- | ------------------------------------------------------------ | ---- | ---- | ------------------------------------------------------------ | | name | string | Yes | No | Application name. | diff --git a/en/application-dev/reference/apis/js-apis-bundleMonitor.md b/en/application-dev/reference/apis/js-apis-bundleMonitor.md index 0cea1311feadeba8b3dc9f7dd250894e57267c67..1b543b547a9e3904b664e0f2826aa761402ad82b 100644 --- a/en/application-dev/reference/apis/js-apis-bundleMonitor.md +++ b/en/application-dev/reference/apis/js-apis-bundleMonitor.md @@ -31,6 +31,20 @@ For details, see [Permission Levels](../../security/accesstoken-overview.md). | bundleName | string | Yes | No | Name of the bundle whose status changes.| | userId | number | Yes | No | ID of the user whose bundle status changes. | +## BundleChangedEvent + +Enumerates the types of events to listen for. + +**System capability**: SystemCapability.BundleManager.BundleFramework.Core + +**System API**: This is a system API. + +| Name | Description | +| ---------- | --------------- | +| add | Bundle addition events. | +| update | Bundle update events. | +| remove | Bundle removal events. | + ## bundleMonitor.on on(type: BundleChangedEvent, callback: Callback\): void; @@ -47,7 +61,7 @@ Subscribes to bundle installation, uninstall, and update events. | Name | Type | Mandatory| Description | | ---------------------------- | -------- | ---- | ------------------ | -| type| BundleChangedEvent| Yes | Type of the event to subscribe to.| +| type| [BundleChangedEvent](js-apis-bundleMonitor.md#BundleChangedEvent)| Yes | Type of the event to subscribe to.| | callback | callback\| Yes | Callback used for the subscription.| **Example** @@ -80,7 +94,7 @@ Unsubscribes from bundle installation, uninstall, and update events. | Name | Type | Mandatory| Description | | ---------------------------- | -------- | ---- | ---------------------------------------------------------- | -| type| BundleChangedEvent| Yes | Type of the event to unsubscribe from. | +| type| [BundleChangedEvent](js-apis-bundleMonitor.md#BundleChangedEvent)| Yes | Type of the event to unsubscribe from. | | callback | callback\| No | Callback used for the unsubscription. By default, no value is passed, and all callbacks of the current event are unsubscribed from.| **Example**