定义:是在系统的通知栏中呈现多样式持久性消息的类。
Notifcation的方法:setContentTitle():设置标题,setContentText():设置内容,setWhen():设置通知的时间,setSmallIcon():设置通知的小图标,setLargeIcon() :设置通知的大图标,setAutoCancel():自动删除通知
![](https://img-blog.csdnimg.cn/img_convert/669d1593e15c35ff3a975338d52a5bb3.png)
![](https://img-blog.csdnimg.cn/img_convert/eaa307d7c402c99325c2bd796196099d.png)
![](https://img-blog.csdnimg.cn/img_convert/f40a443f7cfa1ffe512a7e30dcc3fc0e.png)
定义:是在系统的通知栏中呈现多样式持久性消息的类。
Notifcation的方法:setContentTitle():设置标题,setContentText():设置内容,setWhen():设置通知的时间,setSmallIcon():设置通知的小图标,setLargeIcon() :设置通知的大图标,setAutoCancel():自动删除通知