The main grid component which handles the participant grid layout, pagination, and focus modes.
| Method | Parameters | Description |
|---|---|---|
activate |
meeting: RealtimeKitClient |
Bind the grid to the meeting state |
refresh |
force: Boolean |
Force a refresh of the grid layout and participants |
enableFocusMode |
- | Enable focus mode, which hides the horizontal peer strip and full-screen toggle to keep attention on the primary speaker or shared content |
applyDesignTokens |
designTokens: RtkDesignTokens |
Apply custom design tokens for theming |
<com.cloudflare.realtimekit.ui.view.grid.RtkGridView
android:id="@+id/rtk_grid"
android:layout_width="match_parent"
android:layout_height="match_parent" />val grid = findViewById<RtkGridView>(R.id.rtk_grid)
grid.activate(meeting)