TimeText

Functions summary

Unit
@UnstableApi
@Composable
TimeText(
    player: Player?,
    modifier: Modifier,
    color: Color,
    timeFormat: TimeFormat,
    scope: CoroutineScope
)

Progress indicator that represents the Player's progress state in textual form.

Functions

@UnstableApi
@Composable
fun TimeText(
    player: Player?,
    modifier: Modifier = Modifier,
    color: Color = Color.Unspecified,
    timeFormat: TimeFormat,
    scope: CoroutineScope = rememberCoroutineScope()
): Unit

Progress indicator that represents the Player's progress state in textual form.

It displays the up-to-date current position and duration of the media, formatted by getStringForTime.

Parameters
player: Player?

The Player to get the progress from.

modifier: Modifier = Modifier

The Modifier to be applied to the text.

color: Color = Color.Unspecified

The Color to be applied to the text. If Color.Unspecified, the color will be inherited from the theme.

timeFormat: TimeFormat

The TimeFormat to use for displaying the time.

scope: CoroutineScope = rememberCoroutineScope()

Coroutine scope to listen to the progress updates from the player.