未验证 提交 2eac0f2d 编写于 作者: L Lotol 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md.

Signed-off-by: NLotol <linxiangzhi@huawei.com>
上级 cabb76f6
...@@ -33,17 +33,17 @@ import bundleMonitor from '@ohos.bundle.bundleMonitor'; ...@@ -33,17 +33,17 @@ import bundleMonitor from '@ohos.bundle.bundleMonitor';
## BundleChangedEvent ## BundleChangedEvent
监听的事件类型的枚举信息 监听的事件类型。
**系统能力:** SystemCapability.BundleManager.BundleFramework.Core **系统能力:** SystemCapability.BundleManager.BundleFramework.Core
**系统API:** 此接口为系统接口。 **系统API:** 此接口为系统接口。
| 名称 | 类型 | 说明 | | 名称 | 说明 |
| ---------- | ------ | --------------- | | ---------- | --------------- |
| app | string | 监听应用事件。 | | app | 监听应用事件。 |
| update | string | 监听更新事件。 | | update | 监听更新事件。 |
| remove | string | 监听删除事件。 | | remove | 监听删除事件。 |
## bundleMonitor.on ## bundleMonitor.on
...@@ -61,7 +61,7 @@ on(type: BundleChangedEvent, callback: Callback\<BundleChangedInfo>): void; ...@@ -61,7 +61,7 @@ on(type: BundleChangedEvent, callback: Callback\<BundleChangedInfo>): void;
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| ---------------------------- | -------- | ---- | ------------------ | | ---------------------------- | -------- | ---- | ------------------ |
| type| BundleChangedEvent| 是 | 注册监听的事件类型。 | | type| [BundleChangedEvent](#BundleChangedEvent)| 是 | 注册监听的事件类型。 |
| callback | callback\<BundleChangedInfo>| 是 | 注册监听的回调函数。 | | callback | callback\<BundleChangedInfo>| 是 | 注册监听的回调函数。 |
**示例:** **示例:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册