rememberCurrentMediaItemState

Functions summary

CurrentMediaItemState

Remembers the value of CurrentMediaItemState created based on the passed Player and launch a coroutine to listen to Player's changes.

Functions

rememberCurrentMediaItemState

@UnstableApi
@Composable
fun rememberCurrentMediaItemState(player: Player?): CurrentMediaItemState

Remembers the value of CurrentMediaItemState created based on the passed Player and launch a coroutine to listen to Player's changes. If the Player instance changes between compositions, produce and remember a new value.