RoomParticipantStore provides a comprehensive set of APIs to manage room participant related operations.Property | Type | Description |
participantList | Participant list. | |
participantListCursor | StateFlow<String> | Participant list cursor. |
audienceList | Audience list (for webinar room). | |
audienceListCursor | StateFlow<String> | Audience list cursor. |
adminList | Admin list. | |
messageDisabledUserList | Message disabled user list. | |
participantListWithVideo | Participant list with video. | |
participantWithScreen | Participant sharing screen. | |
pendingDeviceApplications | Pending device application list. | |
pendingDeviceInvitations | Pending device invitation list. | |
speakingUsers | StateFlow<MutableMap<String, Int>> | Speaking users and their volume. |
networkQualities | StateFlow<MutableMap<String, NetworkInfo>> | User network quality info. |
pendingParticipantList | Pending participant list. | |
localParticipant | Local participant info. |
Function | Description |
Create object instance. | |
Participant event callback. | |
Participant event callback. | |
Get participant list. | |
Get audience list (for webinar room). | |
Search users by keyword. | |
Promote audience to participant (for webinar room). | |
Demote participant to audience (for webinar room). | |
Transfer owner. | |
Set admin. | |
Revoke admin. | |
Kick user. | |
Update participant name card. | |
Update participant metadata. | |
Mute microphone. | |
Unmute microphone. | |
Close participant device. | |
Mute user. | |
Disable all devices. | |
Mute all users. | |
Request to open device. | |
Cancel open device request. | |
Approve open device request. | |
Reject open device request. | |
Invite to open device. | |
Cancel open device invitation. | |
Accept open device invitation. | |
Decline open device invitation. |
abstract fun addRoomParticipantListener(listener: RoomParticipantListener?)
Parameter | Type | Description |
listener | Listener. |
abstract fun removeRoomParticipantListener(listener: RoomParticipantListener?)
Parameter | Type | Description |
listener | Listener. |
abstract fun getParticipantList(cursor: String?, completion: ListResultCompletionHandler<RoomParticipant>?)
Parameter | Type | Description |
cursor | String? | Pagination cursor. |
completion | Completion callback. |
abstract fun getAudienceList(cursor: String?, completion: ListResultCompletionHandler<RoomUser>?)
Parameter | Type | Description |
cursor | String? | Pagination cursor. |
completion | Completion callback. |
abstract fun searchUsers(keyword: String, completion: ListResultCompletionHandler<RoomUser>?)
Parameter | Type | Description |
keyword | String | Search keyword. |
completion | Completion callback. |
abstract fun promoteAudienceToParticipant(userID: String, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
completion | CompletionHandler? | Completion callback. |
abstract fun demoteParticipantToAudience(userID: String, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
completion | CompletionHandler? | Completion callback. |
abstract fun transferOwner(userID: String, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
completion | CompletionHandler? | Completion callback. |
abstract fun setAdmin(userID: String, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
completion | CompletionHandler? | Completion callback. |
abstract fun revokeAdmin(userID: String, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
completion | CompletionHandler? | Completion callback. |
abstract fun kickUser(userID: String, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
completion | CompletionHandler? | Completion callback. |
abstract fun updateParticipantNameCard(userID: String, nameCard: String, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
nameCard | String | Name card. |
completion | CompletionHandler? | Completion callback. |
abstract fun updateParticipantMetaData(userID: String,metaData: HashMap<String, String>,completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
metaData | HashMap<String, String> | Metadata. |
completion | CompletionHandler? | Completion callback. |
abstract fun muteMicrophone()
abstract fun unmuteMicrophone(completion: CompletionHandler?)
Parameter | Type | Description |
completion | CompletionHandler? | Completion callback. |
abstract fun closeParticipantDevice(userID: String, device: DeviceType, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
device | DeviceType | Device type. |
completion | CompletionHandler? | Completion callback. |
abstract fun disableUserMessage(userID: String, disable: Boolean, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
disable | Boolean | Whether to mute. |
completion | CompletionHandler? | Completion callback. |
abstract fun disableAllDevices(device: DeviceType, disable: Boolean, completion: CompletionHandler?)
Parameter | Type | Description |
device | DeviceType | Device type. |
disable | Boolean | Whether to disable. |
completion | CompletionHandler? | Completion callback. |
abstract fun disableAllMessages(disable: Boolean, completion: CompletionHandler?)
Parameter | Type | Description |
disable | Boolean | Whether to mute. |
completion | CompletionHandler? | Completion callback. |
abstract fun requestToOpenDevice(device: DeviceType, timeout: Int = 0, completion: CompletionHandler?)
Parameter | Type | Description |
device | DeviceType | Device type. |
timeout | Int | Timeout (in seconds). |
completion | CompletionHandler? | Completion callback. |
abstract fun cancelOpenDeviceRequest(device: DeviceType, completion: CompletionHandler?)
Parameter | Type | Description |
device | DeviceType | Device type. |
completion | CompletionHandler? | Completion callback. |
abstract fun approveOpenDeviceRequest(device: DeviceType, userID: String, completion: CompletionHandler?)
Parameter | Type | Description |
device | DeviceType | Device type. |
userID | String | User ID. |
completion | CompletionHandler? | Completion callback. |
abstract fun rejectOpenDeviceRequest(device: DeviceType, userID: String, completion: CompletionHandler?)
Parameter | Type | Description |
device | DeviceType | Device type. |
userID | String | User ID. |
completion | CompletionHandler? | Completion callback. |
abstract fun inviteToOpenDevice(userID: String,device: DeviceType,timeout: Int = 0,completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
device | DeviceType | Device type. |
timeout | Int | Timeout (in seconds). |
completion | CompletionHandler? | Completion callback. |
abstract fun cancelOpenDeviceInvitation(userID: String, device: DeviceType, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
device | DeviceType | Device type. |
completion | CompletionHandler? | Completion callback. |
abstract fun acceptOpenDeviceInvitation(userID: String, device: DeviceType, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
device | DeviceType | Device type. |
completion | CompletionHandler? | Completion callback. |
abstract fun declineOpenDeviceInvitation(userID: String, device: DeviceType, completion: CompletionHandler?)
Parameter | Type | Description |
userID | String | User ID. |
device | DeviceType | Device type. |
completion | CompletionHandler? | Completion callback. |
Enum Value | Value | Description |
OWNER | 0 | Owner. |
ADMIN | 1 | Admin. |
GENERAL_USER | 2 | General user. |
Enum Value | Description |
scheduled | Scheduled. |
inCalling | In calling. |
callTimeout | Call timeout. |
callRejected | Call rejected. |
inRoom | In room. |
Enum Value | Description |
kickedByAdmin | Kicked by admin. |
replacedByAnotherDevice | Replaced by another device. |
kickedByServer | Kicked by server. |
connectionTimeout | Connection timeout. |
invalidStatusOnReconnect | Invalid status on reconnect. |
roomLimitExceeded | Room limit exceeded. |
Method | Description |
onParticipantJoined | Triggered when a participant joins the room. |
onParticipantLeft | Triggered when a participant leaves the room. |
onAudiencePromotedToParticipant | Triggered when an audience is promoted to participant. |
onParticipantDemotedToAudience | Triggered when a participant is demoted to audience. |
onOwnerChanged | Triggered when the owner changes. |
onAdminSet | Triggered when an admin is set. |
onAdminRevoked | Triggered when an admin is revoked. |
onKickedFromRoom | Triggered when kicked from the room. |
onParticipantDeviceClosed | Triggered when a participant's device is closed. |
onUserMessageDisabled | Triggered when a user is muted. |
onAllDevicesDisabled | Triggered when all devices are disabled. |
onAllMessagesDisabled | Triggered when all users are muted. |
onDeviceRequestReceived | Triggered when a device request is received. |
onDeviceRequestCancelled | Triggered when a device request is cancelled. |
onDeviceRequestTimeout | Triggered when a device request times out. |
onDeviceRequestApproved | Triggered when a device request is approved. |
onDeviceRequestRejected | Triggered when a device request is rejected. |
onDeviceRequestProcessed | Triggered when a device request is processed. |
onDeviceInvitationReceived | Triggered when a device invitation is received. |
onDeviceInvitationCancelled | Triggered when a device invitation is cancelled. |
onDeviceInvitationTimeout | Triggered when a device invitation times out. |
onDeviceInvitationAccepted | Triggered when a device invitation is accepted. |
onDeviceInvitationDeclined | Triggered when a device invitation is declined. |
Property | Type | Description |
participantList | Participant list. | |
participantListCursor | StateFlow<String> | Participant list cursor. |
audienceList | Audience list (for webinar room). | |
audienceListCursor | StateFlow<String> | Audience list cursor. |
adminList | Admin list. | |
messageDisabledUserList | Message disabled user list. | |
participantListWithVideo | Participant list with video. | |
participantWithScreen | Participant sharing screen. | |
pendingDeviceApplications | Pending device application list. | |
pendingDeviceInvitations | Pending device invitation list. | |
speakingUsers | StateFlow<MutableMap<String, Int>> | Speaking users and their volume. |
networkQualities | StateFlow<MutableMap<String, NetworkInfo>> | User network quality info. |
pendingParticipantList | Pending participant list. | |
localParticipant | Local participant info. |
피드백