ConfirmationDialogDefaults

object ConfirmationDialogDefaults


Contains default values used by ConfirmationDialog composable.

Summary

Constants

const Long

Default timeout for the ConfirmationDialog dialog, in milliseconds.

Public functions

Unit

A default composable used in FailureConfirmationDialog that displays a failure icon with an animation.

Unit

A default composable used in SuccessConfirmationDialog that displays a success icon with an animation.

ConfirmationDialogColors

Creates a ConfirmationDialogColors that represents the default colors used in a ConfirmationDialog.

ConfirmationDialogColors
@Composable
colors(iconColor: Color, iconContainerColor: Color, textColor: Color)

Creates a ConfirmationDialogColors with modified colors used in ConfirmationDialog.

ConfirmationDialogColors

Creates a ConfirmationDialogColors that represents the default colors used in a FailureConfirmationDialog.

ConfirmationDialogColors
@Composable
failureColors(
    iconColor: Color,
    iconContainerColor: Color,
    textColor: Color
)

Creates a ConfirmationDialogColors with modified colors used in FailureConfirmationDialog.

ConfirmationDialogColors

Creates a ConfirmationDialogColors that represents the default colors used in a SuccessConfirmationDialog.

ConfirmationDialogColors
@Composable
successColors(
    iconColor: Color,
    iconContainerColor: Color,
    textColor: Color
)

Creates a ConfirmationDialogColors with modified colors used in SuccessConfirmationDialog.

Public properties

Dp

Default icon size for the ConfirmationDialog with curved content

Dp

Default icon size for the ConfirmationDialog with linear content

CurvedTextStyle

The default style for curved text content.

String

The default message for a FailureConfirmationDialog.

String

The default message for a SuccessConfirmationDialog.

Constants

DurationMillis

Added in 1.0.0-alpha31
const val DurationMillis = 4000: Long

Default timeout for the ConfirmationDialog dialog, in milliseconds. The actual timeout used will be adjusted for accessibility, taking into account the contents displayed.

Public functions

FailureIcon

Added in 1.0.0-alpha31
@Composable
fun FailureIcon(): Unit

A default composable used in FailureConfirmationDialog that displays a failure icon with an animation.

SuccessIcon

Added in 1.0.0-alpha31
@Composable
fun SuccessIcon(): Unit

A default composable used in SuccessConfirmationDialog that displays a success icon with an animation.

colors

Added in 1.0.0-alpha31
@Composable
fun colors(): ConfirmationDialogColors

Creates a ConfirmationDialogColors that represents the default colors used in a ConfirmationDialog.

colors

@Composable
fun colors(
    iconColor: Color = Color.Unspecified,
    iconContainerColor: Color = Color.Unspecified,
    textColor: Color = Color.Unspecified
): ConfirmationDialogColors

Creates a ConfirmationDialogColors with modified colors used in ConfirmationDialog.

Parameters
iconColor: Color = Color.Unspecified

The icon color.

iconContainerColor: Color = Color.Unspecified

The icon container color.

textColor: Color = Color.Unspecified

The text color.

failureColors

Added in 1.0.0-alpha31
@Composable
fun failureColors(): ConfirmationDialogColors

Creates a ConfirmationDialogColors that represents the default colors used in a FailureConfirmationDialog.

failureColors

@Composable
fun failureColors(
    iconColor: Color = Color.Unspecified,
    iconContainerColor: Color = Color.Unspecified,
    textColor: Color = Color.Unspecified
): ConfirmationDialogColors

Creates a ConfirmationDialogColors with modified colors used in FailureConfirmationDialog.

Parameters
iconColor: Color = Color.Unspecified

The icon color.

iconContainerColor: Color = Color.Unspecified

The icon container color.

textColor: Color = Color.Unspecified

The text color.

successColors

Added in 1.0.0-alpha31
@Composable
fun successColors(): ConfirmationDialogColors

Creates a ConfirmationDialogColors that represents the default colors used in a SuccessConfirmationDialog.

successColors

@Composable
fun successColors(
    iconColor: Color = Color.Unspecified,
    iconContainerColor: Color = Color.Unspecified,
    textColor: Color = Color.Unspecified
): ConfirmationDialogColors

Creates a ConfirmationDialogColors with modified colors used in SuccessConfirmationDialog.

Parameters
iconColor: Color = Color.Unspecified

The icon color.

iconContainerColor: Color = Color.Unspecified

The icon container color.

textColor: Color = Color.Unspecified

The text color.

Public properties

IconSize

Added in 1.0.0-alpha31
val IconSizeDp

Default icon size for the ConfirmationDialog with curved content

SmallIconSize

Added in 1.0.0-alpha31
val SmallIconSizeDp

Default icon size for the ConfirmationDialog with linear content

curvedTextStyle

Added in 1.0.0-alpha31
val curvedTextStyleCurvedTextStyle

The default style for curved text content.

failureText

Added in 1.0.0-alpha31
val failureTextString

The default message for a FailureConfirmationDialog.

successText

Added in 1.0.0-alpha31
val successTextString

The default message for a SuccessConfirmationDialog.