您的位置: 首页 > 技术问答 > 有没有办法检测通知栏是否已被清除? 有没有办法检测通知栏是否已被清除? 分类: 技术问答 • 2022-06-22 13:21:08 问题描述: 我想在用户清除noficiation栏时被通知(点击“清除”按钮)。有没有办法检测通知栏是否已被清除? 我的意思是到该按钮: 有没有办法做到这一点?通过播放什么? 在此先感谢 答 为了你自己的通知,请deleteIntent指定PendingIntent要执行时,用户清除您的通知。 但是,您无法确定该按钮是否一般被按下,而不是您自己的其他通知。