![](/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.