有没有办法检测通知栏是否已被清除?

问题描述:

我想在用户清除noficiation栏时被通知(点击“清除”按钮)。有没有办法检测通知栏是否已被清除?

我的意思是到该按钮:

enter image description here

有没有办法做到这一点?通过播放什么?

在此先感谢

为了你自己的通知,请deleteIntent指定PendingIntent要执行时,用户清除您的通知。

但是,您无法确定该按钮是否一般被按下,而不是您自己的其他通知。