Room class Room

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, RoomOptions? roomOptions, Engine? engine})

Properties

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

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}) 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
reconnect() Future<void>
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toString() String
A string representation of this object.
inherited

Operators

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