OpenOnPhoneDialogDefaults

object OpenOnPhoneDialogDefaults


Contains the default values used by OpenOnPhoneDialog.

Summary

Public functions

Unit
@Composable
Icon(modifier: Modifier, contentDescription: String)

A default composable used in OpenOnPhoneDialog that displays an open on phone icon with an animation.

OpenOnPhoneDialogColors

Creates a OpenOnPhoneDialogColors that represents the default colors used in OpenOnPhoneDialog.

OpenOnPhoneDialogColors
@Composable
colors(
    iconColor: Color,
    iconContainerColor: Color,
    progressIndicatorColor: Color,
    progressTrackColor: Color,
    textColor: Color
)

Creates a OpenOnPhoneDialogColors with modified colors used in OpenOnPhoneDialog.

Public properties

Long

Default timeout for the OpenOnPhoneDialog dialog, in milliseconds.

CurvedTextStyle

The default style for curved text content.

String

The default content description for the open on phone icon

String

The default message for an OpenOnPhoneDialog.

Public functions

Icon

Added in 1.0.0-alpha34
@Composable
fun Icon(
    modifier: Modifier = Modifier,
    contentDescription: String = iconContentDescription
): Unit

A default composable used in OpenOnPhoneDialog that displays an open on phone icon with an animation.

Parameters
modifier: Modifier = Modifier

Modifier to be applied to the icon.

contentDescription: String = iconContentDescription

The content description for the icon.

colors

Added in 1.0.0-alpha34
@Composable
fun colors(): OpenOnPhoneDialogColors

Creates a OpenOnPhoneDialogColors that represents the default colors used in OpenOnPhoneDialog.

colors

@Composable
fun colors(
    iconColor: Color = Color.Unspecified,
    iconContainerColor: Color = Color.Unspecified,
    progressIndicatorColor: Color = Color.Unspecified,
    progressTrackColor: Color = Color.Unspecified,
    textColor: Color = Color.Unspecified
): OpenOnPhoneDialogColors

Creates a OpenOnPhoneDialogColors with modified colors used in OpenOnPhoneDialog.

Parameters
iconColor: Color = Color.Unspecified

The icon color.

iconContainerColor: Color = Color.Unspecified

The icon container color.

progressIndicatorColor: Color = Color.Unspecified

The progress indicator color.

progressTrackColor: Color = Color.Unspecified

The progress track color.

textColor: Color = Color.Unspecified

The text color.

Public properties

DurationMillis

Added in 1.0.0-alpha34
val DurationMillisLong

Default timeout for the OpenOnPhoneDialog dialog, in milliseconds.

curvedTextStyle

Added in 1.0.0-alpha34
val curvedTextStyleCurvedTextStyle

The default style for curved text content.

iconContentDescription

Added in 1.0.0-alpha34
val iconContentDescriptionString

The default content description for the open on phone icon

text

Added in 1.0.0-alpha34
val textString

The default message for an OpenOnPhoneDialog.