RemoteTimeTextDefaults

object RemoteTimeTextDefaults


Contains the default values used by RemoteTimeText.

Summary

Public functions

RemoteString

Creates a RemoteString representing the current time in either 12-hour or 24-hour format.

RemoteBoolean

Returns a RemoteBoolean indicating whether the time should be displayed in 24-hour format.

Public properties

RemoteFontFamily

Default font family used by RemoteTimeText.

String?

Default font feature settings used by RemoteTimeText.

RemoteFontVariation.Settings?

Default font variation settings used by RemoteTimeText.

RemoteTextStyle

Default text style used by RemoteTimeText.

RemoteColor

Default background color used by RemoteTimeText, so the text stays visible on top of other content.

Public functions

defaultTimeString

Added in 1.0.0-alpha17
@RemoteComposable
@Composable
fun defaultTimeString(is24HourFormat: RemoteBoolean = is24HourFormat()): RemoteString

Creates a RemoteString representing the current time in either 12-hour or 24-hour format.

The 24-hour format is represented as "HH:mm", while the 12-hour format is represented as "h:mm".

Parameters
is24HourFormat: RemoteBoolean = is24HourFormat()

A RemoteBoolean indicating whether to use 24-hour format. Defaults to the system's current setting at the time of recording.

Returns
RemoteString

A RemoteString that evaluates to the formatted time string.

is24HourFormat

Added in 1.0.0-alpha17
@RemoteComposable
@Composable
fun is24HourFormat(): RemoteBoolean

Returns a RemoteBoolean indicating whether the time should be displayed in 24-hour format. Currently captured at recording time.

Returns
RemoteBoolean

a RemoteBoolean that is true when 24-hour format is enabled

Public properties

FontFamily

Added in 1.0.0-alpha17
val FontFamily: RemoteFontFamily

Default font family used by RemoteTimeText.

FontFeatureSettings

Added in 1.0.0-alpha17
val FontFeatureSettings: String?

Default font feature settings used by RemoteTimeText.

FontVariationSettings

Added in 1.0.0-alpha17
val FontVariationSettings: RemoteFontVariation.Settings?

Default font variation settings used by RemoteTimeText.

TimeTextStyle

Added in 1.0.0-alpha17
val TimeTextStyle: RemoteTextStyle

Default text style used by RemoteTimeText.

backgroundColor

val backgroundColor: RemoteColor

Default background color used by RemoteTimeText, so the text stays visible on top of other content.