apply

fun apply(activity: Activity, allowScreenshots: Boolean)

Enables or disables FLAG_SECURE on activity according to allowScreenshots and records the applied policy for diagnostics.