rememberCurrentMediaItemState
Functions summary
CurrentMediaItemState |
Remembers the value of |
Functions
rememberCurrentMediaItemState
Artifact: androidx.media3:media3-ui-compose
@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.