change Pane Layout Mode
fun changePaneLayoutMode(requestMode: FloatingPane.FloatingPaneMode, invalidate: Boolean, isLongPress: Boolean, skipAnimate: Boolean, fromUser: Boolean = false)
Changes the pane's layout mode (floating / bottom / side).
If the requested mode is not allowed or not supported, the request falls back to the default mode for the current configuration. User-initiated changes (fromUser = true) suppress automatic mode changes until the pane is hidden.
Parameters
request Mode
The target FloatingPaneMode.
invalidate
Whether to invalidate the pane bounds after the change.
is Long Press
Whether the change was triggered by a long press (triggers haptic feedback).
skip Animate
Whether to skip the transition animation.
from User
Whether the change was initiated by the user. Defaults to false.