SystemUI-应用知栏视图是如何夸进程显示?
应用知栏视图是如何夸进程显示到 SystemUI 的?
跨进程通讯的基础是 IPC ,通知服务(NotificationManagerService, 简称 NMS)也不离开 IPC ,核心架构还是 IPC 架构。
消息通道
- 应用做作为通知的发送端, 需要调用 NMS ,发通知。例如:
String channelId = "channel_1";
String tag = "ailabs";
int id = 10086;
int importance = NotificationManager.IMPORTANCE_LOW;
NotificationChannel channel = new NotificationChannel(channelId, "123", impo