Choose how participants are displayed during a call. The SDK provides multiple layout options to suit different use cases like team meetings, presentations, or one-on-one calls.
Available Layouts
Set Initial Layout
Configure the layout when joining a session using SessionSettingsBuilder:
Change Layout During Call
Switch layouts dynamically during an active call using setLayout():
Each participant can choose their own layout independently. Changing your layout does not affect other participants.
Listen for Layout Changes
Monitor layout changes using LayoutListener:
Flutter listeners are not lifecycle-aware. You must manually remove the layout listener in your widget’s dispose() method to prevent memory leaks:
To prevent users from changing the layout, hide the layout toggle button in the call UI: