Package-level declarations
Composition locals to aid in development of Livekit features.
Properties
CompositionLocal for the Participant currently provided by ParticipantScope
CompositionLocal for the Room currently provided by RoomScope
Not to be confused with LocalParticipant.
Functions
A simple way to loop over participants that creates a ParticipantScope for each participant and calls content.
A simple way to loop over tracks that creates a TrackReferenceScope for each track and calls content.
A simple handler for listening to room state changes.
Remembers a new Room object.
Returns the passedParticipant or the currently provided ParticipantLocal.
Returns the passedRoom or the currently provided RoomLocal.
Returns the session, or if null/no-arg, the currently provided SessionLocal.
Returns the passedTrack or the currently provided TrackReferenceLocal.
Establishes a room scope which remembers a Room object which can be accessed through the RoomLocal composition local.
Establishes a session scope which allows the current Session that can be accessed through the SessionLocal composition local, as well as the session's room object through the RoomLocal composition local.
Binds trackRef to the TrackReferenceLocal for the scope of content.