{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

SecureFlagPolicy

public enum SecureFlagPolicy extends Enum

java.lang.Object
   ↳ kotlin.Enum
     ↳ androidx.compose.ui.window.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 methods

final @NonNull EnumEntries<@NonNull SecureFlagPolicy>

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

final @NonNull SecureFlagPolicy

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

final @NonNull SecureFlagPolicy[]

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

Enum Values

Inherit

SecureFlagPolicy SecureFlagPolicy.Inherit

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

SecureOff

SecureFlagPolicy SecureFlagPolicy.SecureOff

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

SecureOn

SecureFlagPolicy SecureFlagPolicy.SecureOn

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

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull SecureFlagPolicygetEntries()

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

valueOf

public final @NonNull SecureFlagPolicy valueOf(@NonNull String value)

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

public final @NonNull SecureFlagPolicy[] values()

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.