Confirmation

fun Confirmation(showDialog: Boolean, onTimeout: () -> Unit, modifier: Modifier = Modifier, icon: @Composable () -> Unit? = null, title: String? = null, durationMillis: Long = DialogDefaults.ShortDurationMillis, columnState: ScalingLazyColumnState = rememberColumnState( ScalingLazyColumnDefaults.responsive( verticalArrangement = DialogDefaults.ConfirmationVerticalArrangement, additionalPaddingAtBottom = 0.dp, ), ))

This component is an alternative to ConfirmationContent, providing the following:

  • a convenient way of passing a title and an icon;

  • duration;

  • wrapped in a Dialog;


fun Confirmation(onTimeout: () -> Unit, modifier: Modifier = Modifier, icon: @Composable ColumnScope.() -> Unit? = null, scrollState: ScalingLazyListState = rememberScalingLazyListState(), durationMillis: Long = DialogDefaults.ShortDurationMillis, backgroundColor: Color = MaterialTheme.colors.background, contentColor: Color = contentColorFor(backgroundColor), iconColor: Color = contentColor, verticalArrangement: Arrangement.Vertical = DialogDefaults.ConfirmationVerticalArrangement, contentPadding: PaddingValues = DialogDefaults.ContentPadding, content: @Composable ColumnScope.() -> Unit)

A wrapper for Confirmation component, that calculates the value passed to durationMillis for accessibility.

This should be removed once https://issuetracker.google.com/issues/261385562 is addressed.