FailureConfirmationDialogContent

Functions summary

Unit
@Composable
FailureConfirmationDialogContent(
    curvedText: (CurvedScope.() -> Unit)?,
    modifier: Modifier,
    colors: ConfirmationDialogColors,
    content: @Composable () -> Unit
)

FailureConfirmationDialogContent provides the content for a failure confirmation dialog with icon and an optional short curved text.

Functions

FailureConfirmationDialogContent

@Composable
fun FailureConfirmationDialogContent(
    curvedText: (CurvedScope.() -> Unit)?,
    modifier: Modifier = Modifier,
    colors: ConfirmationDialogColors = ConfirmationDialogDefaults.failureColors(),
    content: @Composable () -> Unit = { ConfirmationDialogDefaults.ConnectionFailureIcon() }
): Unit

FailureConfirmationDialogContent provides the content for a failure confirmation dialog with icon and an optional short curved text. This variation of confirmation dialog indicates an unsuccessful operation or action.

Prefer using FailureConfirmationDialog directly, which provides built-in animations when showing/hiding the dialog. This composable may be used to provide the content for a confirmation dialog if custom show/hide animations are required.

Where user input is required, such as choosing to ok or cancel an action, use AlertDialog instead of FailureConfirmationDialog.

Parameters
curvedText: (CurvedScope.() -> Unit)?

A slot for displaying curved text content which will be shown along the bottom edge of the dialog. We recommend using confirmationDialogCurvedText for this parameter, which will give the default sweep angle and padding.

modifier: Modifier = Modifier

Modifier to be applied to the confirmation content.

colors: ConfirmationDialogColors = ConfirmationDialogDefaults.failureColors()

A ConfirmationDialogColors object for customizing the colors used in this FailureConfirmationDialog. will be adjusted by the accessibility manager according to the content displayed.

content: @Composable () -> Unit = { ConfirmationDialogDefaults.ConnectionFailureIcon() }

A slot for displaying an icon inside the confirmation dialog, which can be animated. The default value is ConfirmationDialogDefaults.ConnectionFailureIcon, which shows a broken connection to the phone icon. Alternatively, provide ConfirmationDialogDefaults.GenericFailureIcon for a generic error icon.