ProgressIndicator

Functions summary

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

A state container for a progress indicator that provides progress updates from a Player.

Functions

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 Player.

This composable manages the state of the player's progress and exposes a ProgressStateWithTickCount object to its content lambda. This allows for the creation of custom progress indicators.

Parameters
player: Player?

The Player to get the progress from.

totalTickCount: @IntRange(from = 0) Int = 0

The number of discrete values, evenly distributed across the whole duration of the current media item.

scope: CoroutineScope = rememberCoroutineScope()

The CoroutineScope to use for listening to player progress updates.

content: @Composable ProgressStateWithTickCount.() -> Unit

The composable content to be displayed for the progress indicator.