Controls whether an activity's window permits screenshots and screen capture.
Enables or disables FLAG_SECURE on activity according to allowScreenshots and records the applied policy for diagnostics.
FLAG_SECURE
Applies screenshot policy now, on resume, and whenever the setting changes.
Clears FLAG_SECURE, allowing screenshots and screen recording.
Sets FLAG_SECURE to block screenshots and screen recording.