rememberDelayedVisibilityState
fun rememberDelayedVisibilityState(player: Player, visible: Boolean = true, autoHideEnabled: Boolean = true, duration: Duration = DelayedVisibilityState.DefaultDuration): DelayedVisibilityState
Remember delayed visibility state
Parameters
player
The player to listen if it is playing or not
visible
visibility state of the content
autoHideEnabled
true to enable hide after duration
duration
the duration to wait after hiding the content.
fun rememberDelayedVisibilityState(visible: Boolean = true, autoHideEnabled: Boolean = true, duration: Duration = DelayedVisibilityState.DefaultDuration): DelayedVisibilityState
Remember delayed visibility state
Parameters
visible
visibility state of the content.
autoHideEnabled
true to enable hide after duration. Auto hide is always disabled when accessibility is on.
duration
the duration to wait after hiding the content.