Added in 1.7.0-alpha01
public object ConfirmationDialogDefaults
Contains default values used by ConfirmationDialog composable.
Properties
curvedTextStyle
Added in 1.7.0-alpha01
public val curvedTextStyle: CurvedTextStyle
The default style for curved text content.
DurationMillis
Added in 1.7.0-alpha01
public val DurationMillis: Long
Default timeout for the ConfirmationDialog dialog, in milliseconds. The actual timeout used will be adjusted for accessibility, taking into account the contents displayed.
IconSize
Added in 1.7.0-alpha01
public val IconSize: Dp
Default icon size for the ConfirmationDialog with curved content
SmallIconSize
Added in 1.7.0-alpha01
public val SmallIconSize: Dp
Default icon size for the ConfirmationDialog with linear content
Functions
SuccessIcon
Added in 1.7.0-alpha01
@Composable
public fun SuccessIcon(modifier: Modifier = Modifier)
A default composable used in SuccessConfirmationDialog that displays a success icon with an animation.
Parameters
| modifier | Modifier to be applied to the success icon. |
ConnectionFailureIcon
Added in 1.7.0-alpha01
@Composable
public fun ConnectionFailureIcon(modifier: Modifier = Modifier)
A default composable used in FailureConfirmationDialog that displays a broken connection to the phone icon with an animation.
Parameters
| modifier | Modifier to be applied to the failure icon. |
FailureIcon
Added in 1.7.0-alpha01
Deprecated in 1.7.0-alpha01
@Composable
public fun FailureIcon(modifier: Modifier = Modifier): Unit
A default composable used in FailureConfirmationDialog that displays a broken connection to the phone icon with an animation.
Parameters
| modifier | Modifier to be applied to the failure icon. |
GenericFailureIcon
Added in 1.7.0-alpha01
Deprecated in 1.7.0-alpha01
@Composable
public fun GenericFailureIcon(modifier: Modifier = Modifier)
A default composable used in FailureConfirmationDialog that displays a generic error icon.
Parameters
| modifier | Modifier to be applied to the failure icon. |
colors
Added in 1.7.0-alpha01
Deprecated in 1.7.0-alpha01
@Composable
public fun colors(): ConfirmationDialogColors
Creates a ConfirmationDialogColors that represents the default colors used in a ConfirmationDialog.
colors
Added in 1.7.0-alpha01
Deprecated in 1.7.0-alpha01
@Composable
public 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 | The icon color. |
| iconContainerColor | The icon container color. |
| textColor | The text color. |
successColors
Added in 1.7.0-alpha01
Deprecated in 1.7.0-alpha01
@Composable
public fun successColors(): ConfirmationDialogColors
Creates a ConfirmationDialogColors that represents the default colors used in a SuccessConfirmationDialog.
successColors
Added in 1.7.0-alpha01
Deprecated in 1.7.0-alpha01
@Composable
public 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 | The icon color. |
| iconContainerColor | The icon container color. |
| textColor | The text color. |
failureColors
Added in 1.7.0-alpha01
Deprecated in 1.7.0-alpha01
@Composable
public fun failureColors(): ConfirmationDialogColors
Creates a ConfirmationDialogColors that represents the default colors used in a FailureConfirmationDialog.
failureColors
Added in 1.7.0-alpha01
Deprecated in 1.7.0-alpha01
@Composable
public 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 | The icon color. |
| iconContainerColor | The icon container color. |
| textColor | The text color. |