Prevent & Detect Screenshot & screen recording kotlin android
I need to detect & prevent a screenshot & screen recording in android kotlin. I am using this code to prevent screenshots and screen recordings.
window.setFlags( WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE )