RoomStore class abstract

Room management related interfaces, managing room creation, joining, leaving, scheduling and other operations.

RoomStore Manage room creation, joining, leaving, scheduling and other operations. Room management provides complete room lifecycle management, including instant rooms and scheduled rooms. RoomStore provides a comprehensive set of APIs to manage room-related operations.

Key Features

  • Instant Room:Supports creating and joining instant rooms
  • Scheduled Room:Supports scheduling rooms, modifying schedules, canceling schedules and other operations
  • Room Call:Supports calling users to join rooms, accepting/rejecting calls and other operations
  • State Management:Real-time tracking of current room status and scheduled room list

Note: Room status updates are delivered through state publisher. Subscribe to it to receive real-time updates about current room and scheduled room list.

Topics

Getting Instance

  • shared : Get singleton object

Observing State and Events

Scheduled Room Operations

Instant Room Operations

Room Call Operations

See Also

Constructors

RoomStore()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state RoomState
Room related state data provided by RoomStore
no setter

Methods

addRoomListener(RoomListener listener) → void
Add room event callback listener
addScheduledAttendees({required String roomID, required List<String> userIDList}) Future<CompletionHandler>
Add scheduled attendees
cancelScheduledRoom(String roomID) Future<CompletionHandler>
Cancel scheduled room
createAndJoinRoom({required String roomID, required CreateRoomOptions options}) Future<CompletionHandler>
Create and join room
endRoom() Future<CompletionHandler>
End room
getRoomInfo(String roomID) Future<GetRoomInfoCompletionHandler>
Get room info
getScheduledAttendees({required String roomID, required String? cursor}) Future<ListResultCompletionHandler<RoomUser>>
Get scheduled room attendees
getScheduledRoomList(String? cursor) Future<ListResultCompletionHandler<RoomInfo>>
Get scheduled room list
joinRoom({required String roomID, String? password = ""}) Future<CompletionHandler>
Join room
leaveRoom() Future<CompletionHandler>
Leave room
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeRoomListener(RoomListener listener) → void
Remove room event callback listener
removeScheduledAttendees({required String roomID, required List<String> userIDList}) Future<CompletionHandler>
Remove scheduled attendees
reset() → void
Reset room state
scheduleRoom({required String roomID, required ScheduleRoomOptions options}) Future<CompletionHandler>
Schedule a room
toString() String
A string representation of this object.
inherited
updateRoomInfo({required String roomID, required UpdateRoomOptions options, required List<UpdateRoomOptionsModifyFlag> modifyFlagList}) Future<CompletionHandler>
Update room info
updateScheduledRoom({required String roomID, required ScheduleRoomOptions options, required List<ScheduleRoomOptionsModifyFlag> modifyFlagList}) Future<CompletionHandler>
Update scheduled room

Operators

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

Static Properties

shared RoomStore
Singleton object
no setter