Knowing when the Clear button is pressed
Is it possi开发者_如何学Pythonble (i'm sure it is because i've seen other apps do it) to know when the clear notifications button is pressed without having an active notification?
For instance, I need to know if the user has an SMS notification, if he pushes clear I would like to be told. Is there a callback for this?
Is it possible (i'm sure it is because i've seen other apps do it) to know when the clear notifications button is pressed without having an active notification?
No, it is not possible.
I need to know if the user has an SMS notification
No, you do not. For starters, there are a few hundred SMS clients, many of which will use Notifications
, so there is no singular "SMS notification". And, as noted, you do not have any means of determining when other applications add or remove Notifications
.
精彩评论