DialogProperties
-
Cmn
class DialogProperties
Properties used to customize the behavior of a Dialog.
Summary
Public constructors |
|
|---|---|
DialogProperties( |
Cmn
android
|
DialogProperties( |
android
|
Public properties |
||
|---|---|---|
Boolean |
Sets |
android
|
Boolean |
whether the popup can be dismissed by pressing the back or escape buttons on Android or the escape key on desktop. |
Cmn
android
|
Boolean |
whether the dialog can be dismissed by clicking outside the dialog's bounds. |
Cmn
android
|
SecureFlagPolicy |
Policy for setting |
android
|
Boolean |
Whether the width of the dialog's content should be limited to the platform default, which is smaller than the screen width. |
Cmn
android
|
String |
Title to be set on the dialog's window. |
android
|
Public constructors
DialogProperties
DialogProperties(
dismissOnBackPress: Boolean = true,
dismissOnClickOutside: Boolean = true,
usePlatformDefaultWidth: Boolean = true
)
DialogProperties
DialogProperties(
dismissOnBackPress: Boolean = true,
dismissOnClickOutside: Boolean = true,
securePolicy: SecureFlagPolicy = SecureFlagPolicy.Inherit,
usePlatformDefaultWidth: Boolean = true,
decorFitsSystemWindows: Boolean = true,
windowTitle: String = ""
)
Public properties
decorFitsSystemWindows
val decorFitsSystemWindows: Boolean
Sets WindowCompat.setDecorFitsSystemWindows value. Set to false to use WindowInsets. If false, the soft input mode will be changed to WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE on Build.VERSION_CODES.R and below and WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING on Build.VERSION_CODES.S and above. Window.isFloating will be false when decorFitsSystemWindows is false.
dismissOnBackPress
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
val dismissOnClickOutside: Boolean
whether the dialog can be dismissed by clicking outside the dialog's bounds. If true, clicking outside the dialog will call onDismissRequest.
securePolicy
val securePolicy: SecureFlagPolicy
Policy for setting WindowManager.LayoutParams.FLAG_SECURE on the dialog's window.
usePlatformDefaultWidth
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.