SecureFlagPolicy


Policy on setting WindowManager.LayoutParams.FLAG_SECURE on a window.

Summary

Enum Values

Inherit

Inherit WindowManager.LayoutParams.FLAG_SECURE from the parent window and pass it on the window that is using this policy.

SecureOff

No WindowManager.LayoutParams.FLAG_SECURE will be set on the window that is using this policy.

SecureOn

Forces WindowManager.LayoutParams.FLAG_SECURE to be set on the window that is using this policy.

Public functions

SecureFlagPolicy
valueOf(value: String)

Returns the enum constant of this type with the specified name.

android
Array<SecureFlagPolicy>

Returns an array containing the constants of this enum type, in the order they're declared.

android

Enum Values

Inherit

val SecureFlagPolicy.InheritSecureFlagPolicy

Inherit WindowManager.LayoutParams.FLAG_SECURE from the parent window and pass it on the window that is using this policy.

SecureOff

val SecureFlagPolicy.SecureOffSecureFlagPolicy

No WindowManager.LayoutParams.FLAG_SECURE will be set on the window that is using this policy.

SecureOn

val SecureFlagPolicy.SecureOnSecureFlagPolicy

Forces WindowManager.LayoutParams.FLAG_SECURE to be set on the window that is using this policy.

Public functions

valueOf

fun valueOf(value: String): SecureFlagPolicy

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

fun values(): Array<SecureFlagPolicy>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.