美文网首页
Android开发之 通知权限判断

Android开发之 通知权限判断

作者: XiaoXred | 来源:发表于2021-10-12 22:18 被阅读0次

val areNotificationsEnabled  = NotificationManagerCompat.from(this).areNotificationsEnabled()

        if (areNotificationsEnabled){

                    open_btn.setText("已开启")

   }else{

                    open_btn.setText("未开启")

}

相关文章

网友评论

      本文标题:Android开发之 通知权限判断

      本文链接:https://www.haomeiwen.com/subject/nvijoltx.html