setSinglePanel

fun setSinglePanel(isSinglePanel: Boolean)(source)

Sets whether the layout should operate in single panel mode.

When set to true, the layout will display only the primary pane, hiding the secondary pane. This is typically used for narrow screens or when you want to force a single-pane experience.

Parameters

isSinglePanel

true to enable single panel mode, false for normal (multi-panel) behavior.