Room class

Room is the primary construct for LiveKit conferences. It contains a group of Participants, each publishing and subscribing to Tracks. Notifies changes to its state via two ways, by assigning a delegate, or using it as a provider. Room will trigger a change notification update when

  • state changes
  • participant membership changes
  • active speakers are different
Inheritance
Mixed in types
Available Extensions

Constructors

Room({ConnectOptions connectOptions = const ConnectOptions(), RoomOptions roomOptions = const RoomOptions(), Engine? engine})

Properties

activeSpeakers UnmodifiableListView<Participant<TrackPublication<Track>>>
a list of participants that are actively speaking, including local participant.
read-only
connectionState ConnectionState
connection state of the room
read-only
connectOptions ConnectOptions
read-only
disposeFuncCount int
read-onlyinherited
e2eeManager E2EEManager?
read-only
engine → Engine
final
events EventsEmitter<RoomEvent>
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
hasListeners bool
Whether any listeners are currently registered.
read-onlyinherited
isDisposed bool
read-onlyinherited
isRecording bool
read-only
localParticipant LocalParticipant?
the current participant
read-only
metadata String?
metadata of the room
read-only
name String?
name of the room
read-only
participants UnmodifiableMapView<String, RemoteParticipant>
map of SID to RemoteParticipant
read-only
roomOptions RoomOptions
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
serverRegion String?
Server region
read-only
serverVersion String?
Server version
read-only
sid String?
sid of the room
read-only

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
connect(String url, String token, {ConnectOptions? connectOptions, RoomOptions? roomOptions, FastConnectOptions? fastConnectOptions}) Future<void>
createListener({bool synchronized = false}) EventsListener<RoomEvent>
inherited
disconnect() Future<void>
Disconnects from the room, notifying server of disconnection.
dispose() Future<bool>
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onDispose(OnDisposeFunc func) → void
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
setE2EEEnabled(bool enabled) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited