# TimeText

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/material3/indicator/TimeText.composable#TimeText(androidx.media3.common.Player,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.media3.ui.compose.material3.indicator.TimeFormat,kotlinx.coroutines.CoroutineScope)( player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, timeFormat: https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/material3/indicator/TimeFormat, scope: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html )` Progress indicator that represents the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player` progress state in textual form. |

## Functions

### TimeText

Artifact: [androidx.media3:media3-ui-compose-material3](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/ui/compose/material3/indicator/TimeText.kt+function:TimeText)

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

Progress indicator that represents the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player` progress state in textual form.

It displays the up-to-date current position and duration of the media, formatted by `https://developer.android.com/reference/kotlin/androidx/media3/common/util/Util#getStringForTime(java.lang.StringBuilder,java.util.Formatter,long)`.

| Parameters |
|---|---|
| `player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/Player` to get the progress from. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to the text. |
| `color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = Color.Unspecified` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` to be applied to the text. If `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Unspecified()`, the color will be inherited from the theme. |
| `timeFormat: https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/material3/indicator/TimeFormat` | The `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/material3/indicator/TimeFormat` to use for displaying the time. |
| `scope: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html = rememberCoroutineScope()` | Coroutine scope to listen to the progress updates from the player. |