val areNotificationsEnabled = NotificationManagerCompat.from(this).areNotificationsEnabled()
if (areNotificationsEnabled){
open_btn.setText("已开启")
}else{
open_btn.setText("未开启")
}
val areNotificationsEnabled = NotificationManagerCompat.from(this).areNotificationsEnabled()
if (areNotificationsEnabled){
open_btn.setText("已开启")
}else{
open_btn.setText("未开启")
}
本文标题:Android开发之 通知权限判断
本文链接:https://www.haomeiwen.com/subject/nvijoltx.html
网友评论