Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 17-Mar-2025 | - | ||||
figures/ | H | 17-Mar-2025 | - | |||
frameworks/ | H | 17-Mar-2025 | - | 109,945 | 77,383 | |
interfaces/ | H | 17-Mar-2025 | - | 11,510 | 3,240 | |
sa_profile/ | H | 17-Mar-2025 | - | 38 | 34 | |
services/ | H | 17-Mar-2025 | - | 70,142 | 48,778 | |
test/ | H | 17-Mar-2025 | - | 15,970 | 10,380 | |
tools/ | H | 17-Mar-2025 | - | 1,732 | 1,184 | |
BUILD.gn | H A D | 17-Mar-2025 | 617 | 15 | 13 | |
LICENSE | H A D | 17-Mar-2025 | 9.9 KiB | 177 | 150 | |
OAT.xml | H A D | 17-Mar-2025 | 4.5 KiB | 74 | 20 | |
README_zh.md | H A D | 17-Mar-2025 | 1.8 KiB | 64 | 39 | |
bundle.json | H A D | 17-Mar-2025 | 6.1 KiB | 184 | 182 | |
hisysevent.yaml | H A D | 17-Mar-2025 | 5.1 KiB | 118 | 103 | |
notification.gni | H A D | 17-Mar-2025 | 3.8 KiB | 109 | 97 |
README_zh.md
1# 通知子系统 2 3## 简介 4 5OpenHarmony通过ANS(Advanced Notification Service,通知系统服务)对通知类型的消息进行管理,支持多种通知类型,包括文本,长文本,多文本,图片,社交,媒体等。所有系统服务以及应用都可以通过通知接口发送通知消息,用户可以通过SystemUI查看所有通知消息。 6 7通知常见的使用场景: 8 9- 显示接收到短消息、即时消息等。 10- 显示应用的推送消息,如广告、版本更新等。 11- 显示当前正在进行的事件,如导航、下载等。 12 13### 架构图 14 15**图1** 子系统架构图 16 17 18 19 20 21## 目录 22 23``` 24/base/notification/distributed_notification_service/ 25├── frameworks # 接口实现 26├── interfaces 27│ ├── inner_api # 对内接口目录 28│ └── kits # 对外接口目录 29├── sa_profile # 服务配置 30├── services # 服务实现 31└── tools # 工具实现 32 33``` 34 35 36 37## 使用说明 38 39ANS支持4种类型的通道,分别为: 40- 社交通讯 41- 服务提醒 42- 内容资讯 43- 其他 44 45应用开发者可以根据使用场景创建通道。通道创建后,提醒方式均为系统默认提醒方式。终端用户可以通过设置应用调整各通道的提醒方式。 46 47应用开发者发可发布以下类型的通知: 48- 普通文本 49- 长文本 50- 图片 51- 多行文本 52- 社交 53 54并且可调整通知的标签、分组、触发事件等属性。 55 56 57 58## 相关仓 59 60**[通知子系统](https://gitee.com/openharmony/notification_distributed_notification_service/blob/master/README_zh.md)** 61 62[SystemUI系统应用](https://gitee.com/openharmony/applications_systemui/blob/master/README_zh.md) 63 64[元能力子系统](https://gitee.com/openharmony/ability_ability_runtime/blob/master/README_zh.md)