OpenOnPhoneDialogDefaults

object OpenOnPhoneDialogDefaults


Contains the default values used by OpenOnPhoneDialog.

Summary

Constants

const Long

Default timeout for the OpenOnPhoneDialog dialog, in milliseconds.

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

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.

Constants

DurationMillis

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

Default timeout for the OpenOnPhoneDialog dialog, in milliseconds.

Public functions

Icon

Added in 1.0.0-alpha33
@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-alpha33
@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

curvedTextStyle

Added in 1.0.0-alpha33
val curvedTextStyleCurvedTextStyle

The default style for curved text content.

iconContentDescription

Added in 1.0.0-alpha33
val iconContentDescriptionString

The default content description for the open on phone icon

text

Added in 1.0.0-alpha33
val textString

The default message for an OpenOnPhoneDialog.