Class

DialogProperties

Properties used to customize the behavior of a Dialog.

Source set: Android
public class DialogProperties(
    public val dismissOnBackPress: Boolean = true,
    public val dismissOnClickOutside: Boolean = true,
    public val securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit,
    public val usePlatformDefaultWidth: Boolean = true,
    public val decorFitsSystemWindows: Boolean = true,
    public val windowTitle: String = "",
    public val windowType: Int = WindowManager.LayoutParams.TYPE_APPLICATION,
    public val windowToken: IBinder? = null,
    public val blurBehindRadius: Dp = Dp.Unspecified,
    public val backgroundBlurRadius: Dp = Dp.Unspecified,
    public val scrimAlpha: Float = Float.NaN,
    public val windowShape: Shape? = null,
)

Properties used to customize the behavior of a Dialog.

Example usage:

Functions

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int
Source set: Common
public class DialogProperties(
    dismissOnBackPress: Boolean = true,
    dismissOnClickOutside: Boolean = true,
    usePlatformDefaultWidth: Boolean = true,
)

Properties used to customize the behavior of a Dialog.

Parameters

dismissOnBackPress whether the popup can be dismissed by pressing the back or escape buttons on Android or the escape key on desktop. If true, pressing the back button will call onDismissRequest.
dismissOnClickOutside whether the dialog can be dismissed by clicking outside the dialog's bounds. If true, clicking outside the dialog will call onDismissRequest.
usePlatformDefaultWidth Whether the width of the dialog's content should be limited to the platform default, which is smaller than the screen width. Might be used only as named argument.

Properties

dismissOnBackPress

Source set: Common
public val dismissOnBackPress: Boolean

Whether the popup can be dismissed by pressing the back or escape buttons on Android or the escape key on desktop. If true, pressing the back button will call onDismissRequest.

dismissOnClickOutside

Source set: Common
public val dismissOnClickOutside: Boolean

Whether the popup can be dismissed by pressing the back or escape buttons on Android or the escape key on desktop. If true, pressing the back button will call onDismissRequest.

usePlatformDefaultWidth

Source set: Common
public val usePlatformDefaultWidth: Boolean

Whether the width of the dialog's content should be limited to the platform default, which is smaller than the screen width. Might be used only as named argument.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: