Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
figures/ | 12-May-2024 | - | ||||
frameworks/ | 12-May-2024 | - | 29,904 | 22,812 | ||
interfaces/ | 12-May-2024 | - | 22,450 | 12,569 | ||
sa_profile/ | 12-May-2024 | - | 48 | 31 | ||
services/ | 12-May-2024 | - | 23,308 | 16,690 | ||
test/ | 12-May-2024 | - | 3,180 | 2,681 | ||
tools/ | 12-May-2024 | - | 507 | 370 | ||
BUILD.gn | D | 12-May-2024 | 617 | 15 | 13 | |
LICENSE | D | 12-May-2024 | 9.9 KiB | 177 | 150 | |
OAT.xml | D | 12-May-2024 | 4.4 KiB | 75 | 19 | |
README_zh.md | D | 12-May-2024 | 1.7 KiB | 60 | 40 | |
bundle.json | D | 12-May-2024 | 2.5 KiB | 95 | 94 | |
notification.gni | D | 12-May-2024 | 1.4 KiB | 47 | 35 |
README_zh.md
1# 事件通知子系统 2 3## 简介 4 5OpenHarmony通过ANS(Advanced Notification Service,通知系统服务)对通知类型的消息进行管理,支持多种通知类型,包括文本,长文本,多文本,图片,社交,媒体等。所有系统服务以及应用都可以通过通知接口发送通知消息,用户可以通过SystemUI查看所有通知消息。 6 7通知常见的使用场景: 8 9- 显示接收到短消息、即时消息等。 10- 显示应用的推送消息,如广告、版本更新等。 11- 显示当前正在进行的事件,如导航、下载等。 12 13### 架构图 14 15 16 17## 目录 18 19``` 20/base/notification/ans_standard/ 21├── frameworks # 接口实现 22├── interfaces 23│ ├── innerkits # 对内接口目录 24│ └── kits # 对外接口目录 25├── sa_profile # 组件服务配置 26├── services # 组件服务实现 27└── tools # 组件工具实现 28 29``` 30 31## 使用说明 32 33ANS支持4种类型的通道,分别为: 34- 社交通讯 35- 服务提醒 36- 内容资讯 37- 其他 38 39应用开发者可以根据使用场景创建通道。通道创建后,提醒方式均为系统默认提醒方式。终端用户可以通过设置应用调整各通道的提醒方式。 40 41应用开发者发可发布以下类型的通知: 42- 普通文本 43- 长文本 44- 图片 45- 多行文本 46- 社交 47 48并且可调整通知的标签、分组、触发事件等属性。 49 50## 相关仓 51 52事件通知子系统 53 54**notification_ans_standard** 55 56[aafwk\_standard](https://gitee.com/openharmony/aafwk_standard) 57 58[appexecfwk\_standard](https://gitee.com/openharmony/appexecfwk_standard) 59 60[distributeddatamgr\_datamgr](https://gitee.com/openharmony/distributeddatamgr_datamgr)