rememberNextButtonState

Functions summary

NextButtonState

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

Functions

rememberNextButtonState

@UnstableApi
@Composable
fun rememberNextButtonState(player: Player?): NextButtonState

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