防止用户关闭通知 [英] Prevent user from dismissing notification
本文介绍了防止用户关闭通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
某些应用的通知无法通过将其擦去而关闭.
Some apps have notifications which can´t be dismissed by swiping them away.
我该如何管理这种行为?
How can I manage such behaviour?
推荐答案
除了Andro Selvas答案:
In addition to Andro Selvas answer:
如果您使用的是 NotificationCompat.Builder ,则 查看全文