rememberPreviousButtonState

Functions summary

PreviousButtonState

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

Functions

rememberPreviousButtonState

@UnstableApi
@Composable
fun rememberPreviousButtonState(player: Player?): PreviousButtonState

Remembers the value of PreviousButtonState 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.