remember Live Kit Room
fun rememberLiveKitRoom(url: String? = null, token: String? = null, audio: Boolean = false, video: Boolean = false, connect: Boolean = true, roomOptions: RoomOptions? = null, liveKitOverrides: LiveKitOverrides? = null, connectOptions: ConnectOptions? = null, onConnected: suspend CoroutineScope.(Room) -> Unit? = null, onDisconnected: suspend CoroutineScope.(Room) -> Unit? = null, onError: (Room, Exception?) -> Unit? = DEFAULT_ERROR_HANDLER, passedRoom: Room? = null): Room
Remembers a new Room object.
Parameters
url
the url of the livekit server to connect to.
token
the token to connect to livekit with.
audio
enable or disable audio. Defaults to false.
video
enable or disable video. Defaults to false.
connect
whether the room should automatically connect to the server. Defaults to true.
room Options
options to pass to the Room.
live Kit Overrides
overrides to pass to the Room.
connect Options
options to use when connecting. Will not reflect changes if already connected.
on Connected
a listener to be called upon room connection.
on Disconnected
a listener to be called upon room disconnection.
on Error
a listener to be called upon room error.
passed Room
if a Room is provided, it will be used. If null, a new Room will be created instead.