Google is committed to advancing racial equity for Black communities. See how.

AndroidDialogProperties

@Immutable data class AndroidDialogProperties : DialogProperties
kotlin.Any
   ↳ androidx.compose.ui.window.AndroidDialogProperties

Android specific properties to configure a dialog.

Summary

Public constructors
<init>(dismissOnBackPress: Boolean = true, dismissOnClickOutside: Boolean = true, securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit)

Android specific properties to configure a dialog.

Properties
Boolean

Boolean

whether the dialog can be dismissed by pressing the back button.

SecureFlagPolicy

Policy for setting WindowManager.LayoutParams.FLAG_SECURE on the dialog's window.

Public constructors

<init>

AndroidDialogProperties(
    dismissOnBackPress: Boolean = true,
    dismissOnClickOutside: Boolean = true,
    securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit)

Android specific properties to configure a dialog.

Properties

dismissOnBackPress

val dismissOnBackPress: Boolean

dismissOnClickOutside

val dismissOnClickOutside: Boolean

whether the dialog can be dismissed by pressing the back button. If true, pressing the back button will call onDismissRequest.

securePolicy

val securePolicy: SecureFlagPolicy

Policy for setting WindowManager.LayoutParams.FLAG_SECURE on the dialog's window.