[英]How to disable screen mirroring?
How to block the app to screen mirroring?如何阻止应用程序进行屏幕镜像? As i check the FLAG_SECURE ,
当我检查FLAG_SECURE 时,
Window flag: treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays.
窗口标志:将窗口的内容视为安全的,防止其出现在屏幕截图中或在非安全显示器上被查看。
The from being viewed on non-secure displays is to block screen mirroring?在非安全显示器上查看是为了阻止屏幕镜像? if not, what does it means?
如果不是,那是什么意思? And whether we can find some way to prevent the app from the screen mirroring?
以及我们是否可以找到一些方法来阻止应用程序的屏幕镜像?
The FLAG_SECURE will prevent screenshots of your app and if the screen is recorded it will show a full black screen to prevent sensitive data being displayed for example. FLAG_SECURE 将阻止您的应用程序的屏幕截图,如果屏幕被记录,它将显示全黑屏幕以防止显示敏感数据。
But it does not block screen mirroring / casting unfortunately.但不幸的是,它不会阻止屏幕镜像/投射。 There is no way to do it currently with the Android framework.
Android 框架目前无法做到这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.