开发者

How to confirm if Notification already exists?

I don't see any methods in the NotificationManager to check if a given notification already is active, should I be keeping my own logic for this or am I missing开发者_开发问答 something??


Ideally, you should be writing your app such that you do not care whether or not an existing Notification is on the screen.

That being said, between deleteIntent and contentIntent, you can track whether or not the Notification is on-screen yourself, if you so desire.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜