简体   繁体   中英

How to disable screen mirroring?

How to block the app to screen mirroring? As i check the 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.

But it does not block screen mirroring / casting unfortunately. There is no way to do it currently with the Android framework.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM