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
CompositionLocal for the Session currently provided by SessionScope
CompositionLocal for the TrackReference currently provided by TrackReferenceLocal
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.
Wraps content with a CompositionLocalProvider that binds participant to ParticipantLocal.
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.
Wraps content with a CompositionLocalProvider which allows the current Session to 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.