changePaneLayoutMode

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

requestMode

The target FloatingPaneMode.

invalidate

Whether to invalidate the pane bounds after the change.

isLongPress

Whether the change was triggered by a long press (triggers haptic feedback).

skipAnimate

Whether to skip the transition animation.

fromUser

Whether the change was initiated by the user. Defaults to false.