RoomStore provides a comprehensive set of APIs to manage room-related operations.Function | Description |
Get singleton object. | |
Room event callback. | |
Room event callback. | |
Get scheduled room list. | |
Get scheduled room attendees. | |
Schedule a room. | |
Update scheduled room. | |
Add scheduled attendees. | |
Remove scheduled attendees. | |
Cancel scheduled room. | |
Create and join room. | |
Join room. | |
Leave room. | |
End room. | |
Update room info. | |
Get room info. | |
Get pending calls list. | |
Call user to join room. | |
Cancel call. | |
Accept call. | |
Reject call. | |
Start cloud recording. | |
Stop cloud recording. |
abstract fun addRoomListener(listener: RoomListener?)
Parameter | Type | Description |
listener | Listener. |
abstract fun removeRoomListener(listener: RoomListener?)
Parameter | Type | Description |
listener | Listener. |
abstract fun getScheduledRoomList(cursor: String?, completion: ListResultCompletionHandler<RoomInfo>?)
Parameter | Type | Description |
cursor | String? | Pagination cursor. |
completion | Completion callback. |
abstract fun getScheduledAttendees(roomID: String,cursor: String?,completion: ListResultCompletionHandler<RoomUser>?)
Parameter | Type | Description |
roomID | String | Room ID. |
cursor | String? | Pagination cursor. |
completion | Completion callback. |
abstract fun scheduleRoom(roomID: String, options: ScheduleRoomOptions, completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
options | Schedule options. | |
completion | CompletionHandler? | Completion callback. |
abstract fun updateScheduledRoom(roomID: String,options: ScheduleRoomOptions,modifyFlagList: List<ScheduleRoomOptions.ModifyFlag>,completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
options | Schedule options. | |
modifyFlagList | List<ScheduleRoomOptions.ModifyFlag> | Modify flag. |
completion | CompletionHandler? | Completion callback. |
abstract fun addScheduledAttendees(roomID: String, userIDList: List<String>, completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
userIDList | List<String> | User ID list. |
completion | CompletionHandler? | Completion callback. |
abstract fun removeScheduledAttendees(roomID: String, userIDList: List<String>, completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
userIDList | List<String> | User ID list. |
completion | CompletionHandler? | Completion callback. |
abstract fun cancelScheduledRoom(roomID: String, completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
completion | CompletionHandler? | Completion callback. |
abstract fun createAndJoinRoom(roomID: String, roomType: RoomType, options: CreateRoomOptions, completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
roomType | Room type (standard or webinar). | |
options | Create options. | |
completion | CompletionHandler? | Completion callback. |
abstract fun joinRoom(roomID: String, roomType: RoomType, password: String? = "", completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
roomType | Room type (standard or webinar). | |
password | String? | Room password. |
completion | CompletionHandler? | Completion callback. |
abstract fun leaveRoom(completion: CompletionHandler?)
Parameter | Type | Description |
completion | CompletionHandler? | Completion callback. |
abstract fun endRoom(completion: CompletionHandler?)
Parameter | Type | Description |
completion | CompletionHandler? | Completion callback. |
abstract fun updateRoomInfo(roomID: String,options: UpdateRoomOptions,modifyFlagList: List<UpdateRoomOptions.ModifyFlag>,completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
options | Update options. | |
modifyFlagList | List<UpdateRoomOptions.ModifyFlag> | Modify flag. |
completion | CompletionHandler? | Completion callback. |
abstract fun getRoomInfo(roomID: String, completion: GetRoomInfoCompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
completion | Completion callback. |
abstract fun getPendingCalls(roomID: String,cursor: String?,completion: ListResultCompletionHandler<RoomCall>?)
Parameter | Type | Description |
roomID | String | Room ID. |
cursor | String? | Pagination cursor. |
completion | Completion callback. |
abstract fun callUserToRoom(roomID: String,userIDList: List<String>,timeout: Int = 0,extensionInfo: String? = null,completion: CallUserToRoomCompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
userIDList | List<String> | User ID list. |
timeout | Int | Timeout (in seconds). |
extensionInfo | String? | Extension info. |
completion | Completion callback. |
abstract fun cancelCall(roomID: String, userIDList: List<String>, completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
userIDList | List<String> | User ID list. |
completion | CompletionHandler? | Completion callback. |
abstract fun acceptCall(roomID: String, completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
completion | CompletionHandler? | Completion callback. |
abstract fun rejectCall(roomID: String, reason: CallRejectionReason, completion: CompletionHandler?)
Parameter | Type | Description |
roomID | String | Room ID. |
reason | Rejection reason. | |
completion | CompletionHandler? | Completion callback. |
abstract fun startRecording(options: StartRecordingOptions = StartRecordingOptions(), completion: CompletionHandler?)
Parameter | Type | Description |
options | Recording options, reserved for future extensions. | |
completion | CompletionHandler? | Completion callback. |
abstract fun stopRecording(completion: CompletionHandler?)
Parameter | Type | Description |
completion | CompletionHandler? | Completion callback. |
Enum Value | Value | Description |
STANDARD | 1 | Standard room. |
WEBINAR | 2 | Webinar room. |
Enum Value | Value | Description |
SCHEDULED | 1 | Scheduled. |
RUNNING | 2 | Running. |
Enum Value | Value | Description |
NONE | 0 | No call. |
CALLING | 1 | Calling. |
TIMEOUT | 2 | Call timeout. |
REJECTED | 3 | Call rejected. |
Enum Value | Value | Description |
SUCCESS | 0 | Call success. |
ALREADY_IN_CALLING | 1 | User already in calling. |
ALREADY_IN_ROOM | 2 | User already in room. |
Enum Value | Value | Description |
REJECTED | 0 | User actively rejected. |
IN_OTHER_ROOM | 1 | User in another room. |
Enum Value | Value | Description |
NONE | 0 | Not recording. |
RECORDING | 1 | Recording in progress. |
Enum Value | Value | Description |
STOPPED_BY_USER | 0 | Manually stopped by user. |
ROOM_DISMISSED | 1 | Room dismissed. |
MAX_DURATION_REACHED | 2 | Max recording duration reached. |
STORAGE_LIMIT_REACHED | 3 | Storage space limit reached. |
Enum Value | Value | Description |
NO_ERROR | 0 | Operation successful. |
NO_PERMISSION | 1 | Caller is not Owner / Admin. |
FEATURE_NOT_ENABLED | 2 | Cloud recording feature not enabled in console. |
STORAGE_NOT_CONFIGURED | 3 | Recording storage (COS / VOD) not configured. |
SERVICE_UNAVAILABLE | 4 | RoomKit / TRTC recording service temporarily unavailable. |
UNKNOWN_ERROR | 5 | Unknown error. |
Method | Description |
onAddedToScheduledRoom | Triggered when added to a scheduled room. |
onRemovedFromScheduledRoom | Triggered when removed from a scheduled room. |
onScheduledRoomCancelled | Triggered when a scheduled room is cancelled. |
onScheduledRoomStartingSoon | Triggered when a scheduled room is about to start. |
onRoomEnded | Triggered when a room ends. |
onCallReceived | Triggered when a room call is received. |
onCallCancelled | Triggered when a room call is cancelled. |
onCallTimeout | Triggered when a room call times out. |
onCallAccepted | Triggered when a room call is accepted. |
onCallRejected | Triggered when a room call is rejected. |
onCallHandledByOtherDevice | Triggered when a room call is handled by another device. |
onCallRevokedByAdmin | Triggered when a room call is revoked by admin. |
onRecordingStarted | Triggered when recording starts. |
onRecordingStopped | Triggered when recording stops. |
Property | Type | Description |
userID | String | User ID. |
userName | String | User name. |
avatarURL | String | User avatar URL. |
Property | Type | Description |
status | Recording status. | |
operatorUser | User who started the recording. | |
startTime | Long | Recording start timestamp. |
Property | Type | Description |
roomID | String | Room ID. |
roomName | String | Room name. |
roomOwner | Room owner. | |
roomType | Room type. | |
participantCount | Int | Participant count. |
audienceCount | Int | Audience count (for webinar room). |
createTime | Long | Create time. |
roomStatus | Room status. | |
scheduledStartTime | Long | Scheduled start time. |
scheduledEndTime | Long | Scheduled end time. |
startReminderInSeconds | Int | Reminder seconds before start. |
scheduleAttendees | Scheduled attendees list. | |
password | String? | Room password. |
isAllMicrophoneDisabled | Boolean | Whether all microphones are disabled. |
isAllCameraDisabled | Boolean | Whether all cameras are disabled. |
isAllMessageDisabled | Boolean | Whether all messages are disabled. |
isAllScreenShareDisabled | Boolean | Whether all screen sharing is disabled. |
recordingInfo | Recording info. |
Property | Type | Description |
roomName | String | Room name. |
password | String | Room password. |
scheduleStartTime | Long | Scheduled start time. |
scheduleEndTime | Long | Scheduled end time. |
reminderSecondsBeforeStart | Int | Reminder seconds before start. |
scheduleAttendees | List<String> | Scheduled attendee ID list. |
isAllMicrophoneDisabled | Boolean | Whether all microphones are disabled. |
isAllCameraDisabled | Boolean | Whether all cameras are disabled. |
isAllScreenShareDisabled | Boolean | Whether all screen sharing is disabled. |
isAllMessageDisabled | Boolean | Whether all messages are disabled. |
Property | Type | Description |
roomName | String | Room name. |
password | String | Room password. |
isAllMicrophoneDisabled | Boolean | Whether all microphones are disabled. |
isAllCameraDisabled | Boolean | Whether all cameras are disabled. |
isAllScreenShareDisabled | Boolean | Whether all screen sharing is disabled. |
isAllMessageDisabled | Boolean | Whether all messages are disabled. |
Property | Type | Description |
roomName | String | Room name. |
password | String | Room password. |
Property | Type | Description |
caller | Caller info. | |
callee | Callee info. | |
status | Call status. |
fun onSuccess(result: Map<String, RoomCallResult>)
Parameter | Type | Description |
result | Call result map. |
fun onFailure(code: Int, desc: String)
Parameter | Type | Description |
code | Int | Error code. |
desc | String | Error description. |
fun onSuccess(roomInfo: RoomInfo)
Parameter | Type | Description |
roomInfo | Room info. |
fun onFailure(code: Int, desc: String)
Parameter | Type | Description |
code | Int | Error code. |
desc | String | Error description. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários