通过辅助功能API清除其他应用的通知 [英] Clear another app's notification via the Accessibility API

查看:83
本文介绍了通过辅助功能API清除其他应用的通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序正在使用Accessibility API来捕获其他应用程序生成的通知并对其执行操作。我想添加一项功能,可以取消由其他应用生成的原始通知。

My app is using the Accessibility API to catch notifications generated by other apps and act on them. I'd like to add a feature where the original notification (generated by some other app) can be cancelled.

使用通知管理器的通常方法无效,因为您必须是创建通知的人才能清除该通知。可访问性API可以让我读取其他应用程序的通知,但也可以清除它吗?

The usual method of using the notification manager won't work since you have to be the one who created the notification to be able to clear it. The accessibility API lets me read a different app's notification but does it allow you to clear it as well?

谢谢!

推荐答案

不,您不能(非常感谢)清除其他应用程序的通知。

No, you cannot clear other app's notifications (thankfully).

这篇关于通过辅助功能API清除其他应用的通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆