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
override fun equals(other: Any?): Boolean
hashCode
override fun hashCode(): Int
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
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
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
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.