setLayoutVisibility

fun setLayoutVisibility(show: Boolean, animation: Boolean = true, force: Boolean = false)

Sets the visibility state of the floating layout.

Parameters

show

Target visibility (true to show, false to hide).

animation

Whether to animate the transition.

force

Force execution regardless of current state.