# ProgressIndicator

## 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/indicators/ProgressIndicator.composable#ProgressIndicator(androidx.media3.common.Player,kotlin.Int,kotlinx.coroutines.CoroutineScope,kotlin.Function1)( player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?, totalTickCount: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, scope: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html, content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/ProgressStateWithTickCount.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` A state container for a progress indicator that provides progress updates from a `https://developer.android.com/reference/kotlin/androidx/media3/common/Player`. |

## Functions

### ProgressIndicator

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

```
@UnstableApi
@Composable
fun ProgressIndicator(
    player: Player?,
    totalTickCount: @IntRange(from = 0) Int = 0,
    scope: CoroutineScope = rememberCoroutineScope(),
    content: @Composable ProgressStateWithTickCount.() -> Unit
): Unit
```

A state container for a progress indicator that provides progress updates from a `https://developer.android.com/reference/kotlin/androidx/media3/common/Player`.

This composable manages the state of the player's progress and exposes a `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/ProgressStateWithTickCount` object to its `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/indicators/package-summary#ProgressIndicator(androidx.media3.common.Player,kotlin.Int,kotlinx.coroutines.CoroutineScope,kotlin.Function1)` lambda. This allows for the creation of custom progress indicators.

| 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. |
| `totalTickCount: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The number of discrete values, evenly distributed across the whole duration of the current media item. |
| `scope: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html = rememberCoroutineScope()` | The `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html` to use for listening to player progress updates. |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/ProgressStateWithTickCount.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | The composable content to be displayed for the progress indicator. |