Source set: Android
public object DialogDefaults
Contains the default values used by Alert and Confirmation.
Properties
AlertVerticalArrangement
Source set: Android
public val AlertVerticalArrangement: Arrangement.Vertical =
Arrangement.spacedBy(4.dp, Alignment.CenterVertically)
Creates the recommended vertical arrangement for Alert dialog content.
ConfirmationVerticalArrangement
Source set: Android
public val ConfirmationVerticalArrangement: Arrangement.Vertical =
Arrangement.spacedBy(space = 8.dp, alignment = Alignment.CenterVertically)
Creates the recommended vertical arrangement for Confirmation dialog content.
ContentPadding
Source set: Android
public val ContentPadding: PaddingValues = PaddingValues(horizontal = 10.dp)
The padding to apply around the contents.
ShortDurationMillis
Source set: Android
public val ShortDurationMillis: Long = 4000L
Short duration for showing Confirmation.
LongDurationMillis
Source set: Android
public val LongDurationMillis: Long = 10000L
Long duration for showing Confirmation.
IndefiniteDurationMillis
Source set: Android
public val IndefiniteDurationMillis: Long = Long.MAX_VALUE
Show Confirmation indefinitely (supports swipe-to-dismiss).