OpenOnPhoneDialogDefaults

object OpenOnPhoneDialogDefaults


Contains the default values used by OpenOnPhoneDialog.

Summary

Constants

const Long

Default timeout for the OpenOnPhoneDialog dialog, in milliseconds.

Public functions

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.

CurvedScope.() -> Unit

A default composable that displays text along a curved path, used in OpenOnPhoneDialog.

Public properties

@Composable BoxScope.() -> Unit

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

Constants

DurationMillis

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

Default timeout for the OpenOnPhoneDialog dialog, in milliseconds.

Public functions

colors

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

curvedText

Added in 1.0.0-alpha30
@Composable
fun curvedText(
    text: String = LocalContext.current.resources.getString(R.string.wear_m3c_open_on_phone),
    style: CurvedTextStyle = CurvedTextStyle(MaterialTheme.typography.titleLarge)
): CurvedScope.() -> Unit

A default composable that displays text along a curved path, used in OpenOnPhoneDialog.

Parameters
text: String = LocalContext.current.resources.getString(R.string.wear_m3c_open_on_phone)

The text to display. Defaults to an open on phone message.

style: CurvedTextStyle = CurvedTextStyle(MaterialTheme.typography.titleLarge)

The style to apply to the text. Defaults to CurvedTextStyle(MaterialTheme.typography.titleLarge).

Public properties

OpenOnPhoneIcon

Added in 1.0.0-alpha30
val OpenOnPhoneIcon: @Composable BoxScope.() -> Unit

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