Object

ConfirmationDialogDefaults

Contains default values used by ConfirmationDialog composable.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public object ConfirmationDialogDefaults

Contains default values used by ConfirmationDialog composable.

Functions

SuccessIcon

@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

@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

@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

@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

@Composable
public fun colors(): ConfirmationDialogColors

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


colors

@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

@Composable
public fun successColors(): ConfirmationDialogColors

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


successColors

@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

@Composable
public fun failureColors(): ConfirmationDialogColors

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


failureColors

@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.