# LinearProgressIndicator

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable @https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/material3/indicator/LinearProgressIndicator.composable#LinearProgressIndicator(androidx.media3.common.Player,androidx.compose.ui.Modifier)(player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier)` A Material3 `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/material3/indicator/LinearProgressIndicator.composable#LinearProgressIndicator(androidx.media3.common.Player,androidx.compose.ui.Modifier)` that displays the current position of the player. |
| `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/LinearProgressIndicator.composable#LinearProgressIndicator(androidx.media3.common.Player,androidx.compose.ui.Modifier,kotlinx.coroutines.CoroutineScope,androidx.compose.ui.graphics.Color)( player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, scope: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html, color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` A Material3 `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/material3/indicator/LinearProgressIndicator.composable#LinearProgressIndicator(androidx.media3.common.Player,androidx.compose.ui.Modifier,kotlinx.coroutines.CoroutineScope,androidx.compose.ui.graphics.Color)` that displays the current position of the player. |

## Functions

### LinearProgressIndicator

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/LinearProgressIndicator.kt+function:LinearProgressIndicator)

```
@Composable
@UnstableApi
fun LinearProgressIndicator(player: Player?, modifier: Modifier = Modifier): Unit
```

A Material3 `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/material3/indicator/LinearProgressIndicator.composable#LinearProgressIndicator(androidx.media3.common.Player,androidx.compose.ui.Modifier)` that displays the current position of the player.

| 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 progress indicator. |

### LinearProgressIndicator

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/LinearProgressIndicator.kt+function:LinearProgressIndicator)

```
@UnstableApi
@Composable
fun LinearProgressIndicator(
    player: Player?,
    modifier: Modifier = Modifier,
    scope: CoroutineScope = rememberCoroutineScope(),
    color: Color = MaterialTheme.colorScheme.primary
): Unit
```

A Material3 `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/material3/indicator/LinearProgressIndicator.composable#LinearProgressIndicator(androidx.media3.common.Player,androidx.compose.ui.Modifier,kotlinx.coroutines.CoroutineScope,androidx.compose.ui.graphics.Color)` that displays the current position of the player.

| 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 progress indicator. |
| `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. |
| `color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = MaterialTheme.colorScheme.primary` | The color of the progress indicator. |