From 4aaa46a635aaef86dd19a283e49a017c0e276d64 Mon Sep 17 00:00:00 2001 From: zengyawen Date: Mon, 18 Apr 2022 08:40:54 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9sample=E6=A0=BC=E5=BC=8F=20Si?= =?UTF-8?q?gned-off-by:=20zengyawen=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/application-dev/notification/common-event.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/notification/common-event.md b/zh-cn/application-dev/notification/common-event.md index 222dcb4565..6f6f07b3da 100644 --- a/zh-cn/application-dev/notification/common-event.md +++ b/zh-cn/application-dev/notification/common-event.md @@ -170,11 +170,10 @@ if (this.subscriber != null) { } ``` -## 开发实例 +## 相关实例 -针对公共事件开发,有以下示例工程可供参考: +针对公共事件开发,有以下相关实例可供参考: -- [CommonEvent](https://gitee.com/openharmony/app_samples/tree/master/ability/CommonEvent) +- [`CommonEvent`:订阅公共事件(eTS)(API7)](https://gitee.com/openharmony/app_samples/tree/master/ability/CommonEvent) -本示例展示了在eTS中如何使用CommonEvent的接口完成创建订阅者、订阅公共事件、发布公共事件、取消订阅的功能。 -- GitLab