![](/img/trans.png)
[英]How to disable only screen recording (not screenshot) in android and ios with Flutter?
[英]How to disable screenshot in android and ios in nativescript angular
我正在制作一个应用程序,学生可以在其中进行在线测试,我想限制他们在 iOS 和 android 上截屏或记录屏幕。到目前为止,我遇到了 android 解决方案。 我想弄清楚如何在 android 和 iOS 中做到这一点。
防止在Android
上截屏,您可以使用以下代码。
if (app.android) {
const window = app.android.startActivity.getWindow();
window.setFlags(android.view.WindowManager.LayoutParams.FLAG_SECURE,
android.view.WindowManager.LayoutParams.FLAG_SECURE);
}
但是,我想知道如何防止 iOS 上的屏幕截图,任何人都可以提供更多详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.