RemoteTimeText
Source set: Android
@Composable
public fun RemoteTimeText(
modifier: RemoteModifier = RemoteModifier,
time: RemoteString = RemoteTimeDefaults.defaultTimeString(),
fontSize: RemoteTextUnit? = null,
fontFamily: RemoteFontFamily? = null,
leadingText: RemoteString? = null,
trailingText: RemoteString? = null,
separator: RemoteString = "·".rs,
color: RemoteColor? = null,
style: RemoteTextStyle = RemoteTimeTextDefaults.timeTextStyle,
fontFeatureSettings: String? = null,
fontVariationSettings: FontVariation.Settings? = null,
)
A remote composable for displaying the time and surrounding text, designed to curve along the top of a circular screen. This is a remote version of the TimeText composable.
RemoteTimeText is typically used at the top of the screen and is the remote equivalent of androidx.wear.compose.material3.TimeText.
Parameters
| modifier | The RemoteModifier to be applied to the RemoteTimeText. |
| time | The text to display as the time. Defaults to a formatted time string from the remote context. |
| leadingText | Text to be displayed before the time, or null if not present. |
| trailingText | Text to be displayed after the time, or null if not present. |
| separator | The separator to be used between the leading/trailing text and the time. Defaults to "·". |
| color | The color of the text. Defaults to the onBackground color from the current RemoteMaterialTheme. |
| style | The RemoteTextStyle to be applied to the text. Defaults to RemoteTimeTextDefaults.timeTextStyle. |
| fontFeatureSettings | The font feature settings to be applied to the text. Defaults to RemoteTimeTextDefaults.fontFeatureSettings. |
| fontVariationSettings | The font variation settings to be applied to the text. Defaults to RemoteTimeTextDefaults.fontVariationSettings. |