getLayouts
getLayouts
- getLayouts():
Promise<\{ layouts: string[] \}>
Returns a list of available layouts for the room. To set a room layout, use setLayout.
Returns
Promise<\{ layouts: string[] \}>
A promise that resolves to an object containing the list of available layouts for the room.
Example
In this example, we wait for a room to start and then get the available layouts for that room.
This example assumes that there is a RoomSession
already active and that members are joining the room.