diff --git a/en/readme/common-event-notification.md b/en/readme/common-event-notification.md new file mode 100644 index 0000000000000000000000000000000000000000..25aa52b241c1f093d0c8039ead564ccf0a5c834f --- /dev/null +++ b/en/readme/common-event-notification.md @@ -0,0 +1,45 @@ +# Common Event and Notification + +## Overview + +OpenHarmony provides a Common Event Service (CES) for applications to subscribe to, publish, and unsubscribe from common events. + +Common events in OpenHarmony are classified into system common events and custom common events. + +- System common event: sent by the system based on system policies to the applications that have subscribed to the event. This type of event is typically system events published by key system services, such as HAP installation, update, and uninstallation. + +- Custom common events: customized by applications to implement cross-application event communication. + +Each application can subscribe to common events as required. After your application subscribes to a common event, the system sends it to your application every time the event is published. Such an event may be published by the system, other applications, or your own application. + +### Architecture + +![]( figures/cesfwk_architecture_diagram.png "CES Architecture") + +## Directory Structure + +``` +/base/notification/ces_standard/ +│── frameworks # Component directory +│ |── common/log # Logs +│ |── core # Internal implementation code of native APIs +│ ├── native # Implementation code of native APIs +│── interface # External APIs +| |── innerkits # Definition of native APIs +| |── kits/napi # NAPI implementation +├── sa_profile # Service configuration profile +├── services # Service implementation +├── tools # Tools +│── ohos.build # Build script + +``` + +## How to Use + +For details, see *CommonEvent Development Guidelines*. + +## Repositories Involved + +Common Event and Notification + +**notification_ces_standard** diff --git a/en/readme/figures/cesfwk_architecture_diagram.png b/en/readme/figures/cesfwk_architecture_diagram.png new file mode 100644 index 0000000000000000000000000000000000000000..a75de9eb91c34ae4382a6df1085d745ec346c2a3 Binary files /dev/null and b/en/readme/figures/cesfwk_architecture_diagram.png differ