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.Composableimport io.livekit.android.compose.local.RoomScope@Composablefun MyLiveKitApp() {RoomScope(url = "server-url",token = "access-token",connect = true) {/* Your composables go here */}}