The RoomScope

The RoomScope composable is the root of your LiveKit application. It handles the Room object creation and connection, and sets the RoomLocal for its child composables.

import androidx.compose.runtime.Composable
import io.livekit.android.compose.local.RoomScope
@Composable
fun MyLiveKitApp() {
RoomScope(
url = "server-url",
token = "access-token",
connect = true
) {
/* Your composables go here */
}
}