LinearProgressIndicator

Functions summary

Unit

A Material3 LinearProgressIndicator that displays the current position of the player.

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

A Material3 LinearProgressIndicator that displays the current position of the player.

Functions

LinearProgressIndicator

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

A Material3 LinearProgressIndicator that displays the current position of the player.

Parameters
player: Player?

The Player to get the progress from.

modifier: Modifier = Modifier

The Modifier to be applied to the progress indicator.

LinearProgressIndicator

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

A Material3 LinearProgressIndicator that displays the current position of the player.

Parameters
player: Player?

The Player to get the progress from.

modifier: Modifier = Modifier

The Modifier to be applied to the progress indicator.

scope: CoroutineScope = rememberCoroutineScope()

The CoroutineScope to use for listening to player progress updates.

color: Color = MaterialTheme.colorScheme.primary

The color of the progress indicator.