Android开发之 通知权限判断

2021-10-12  本文已影响0人  XiaoXred

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

        if (areNotificationsEnabled){

                    open_btn.setText("已开启")

   }else{

                    open_btn.setText("未开启")

}

上一篇 下一篇

猜你喜欢

热点阅读