Object

ConfirmationDialogDefaults

Contains default values used by ConfirmationDialog composable.

Source set: Android
public object ConfirmationDialogDefaults

Contains default values used by ConfirmationDialog composable.

Properties

curvedTextStyle

Source set: Android
public val curvedTextStyle: CurvedTextStyle

The default style for curved text content.

DurationMillis

Source set: Android
public val DurationMillis: Long = 4000L

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

IconSize

Source set: Android
public val IconSize: Dp = 52.dp

Default icon size for the ConfirmationDialog with curved content

SmallIconSize

Source set: Android
public val SmallIconSize: Dp = 36.dp

Default icon size for the ConfirmationDialog with linear content

Functions

SuccessIcon

Source set: Android
@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

Source set: Android
@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

Source set: Android
@Deprecated(
        "This composable is provided for backwards compatibility with Compose for Wear OS 1.5. " +
            "It has been renamed to clarify the meaning of the icon. Use ConnectionFailureIcon instead.",
        replaceWith = ReplaceWith("ConnectionFailureIcon"),
        level = DeprecationLevel.WARNING,
    )
    @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

Source set: Android
@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

Source set: Android
@Composable
    public fun colors(): ConfirmationDialogColors

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

colors

Source set: Android
@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

Source set: Android
@Composable
    public fun successColors(): ConfirmationDialogColors

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

successColors

Source set: Android
@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

Source set: Android
@Composable
    public fun failureColors(): ConfirmationDialogColors

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

failureColors

Source set: Android
@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.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: