Skip to main content
MeetingRoomEvent carries the overall room state and connection lifecycle of the current meeting and is registered through MeetingEngine.roomEvent. You can extend MeetingRoomSimpleEvent and override only what you need.

Usage notes

  • Room-level events describe the shared state, configuration, and lifecycle of the whole meeting; device, permission, or track changes of a specific member are dispatched by MeetingUserEvent.
  • You can assign the listener before entering the meeting to receive the initial room state; it is cleared after you exit the meeting.
  • Callbacks stay on the actual source thread. onDisconnected() means the underlying connection is actually disconnected; calling exitMeeting() yourself isn’t guaranteed to produce this callback.

Room and connection

onMeetingUpdated(meetingInfo)

Description: The current meeting’s room information was refreshed. Parameters: Returns: None (Unit).

onDisconnected(reason, statusCode, message)

Description: The current meeting is actually disconnected. Parameters: Returns: None (Unit).

onReconnecting()

Description: The current meeting connection started reconnecting automatically. Parameters: None. Returns: None (Unit).

onReconnected()

Description: The current meeting connection reconnected automatically. Parameters: None. Returns: None (Unit).

Room configuration

onRoomCameraStateChanged(operatorUid, selfUnMuteCameraDisabled, disabled)

Description: The room’s camera-off setting or the policy on whether members can turn their cameras back on themselves changed. Parameters: Returns: None (Unit).

onRoomMicStateChanged(operatorUid, selfUnMuteMicDisabled, disabled)

Description: The room’s mic mute setting or the policy on whether members can unmute themselves changed. Parameters: Returns: None (Unit).

onRoomChatDisabledChanged(operatorUid, disabled)

Description: The room’s chat-disabled state changed. Parameters: Returns: None (Unit).

onRoomScreenshotDisabledChanged(operatorUid, disabled)

Description: The room’s screenshot-disabled state changed. Parameters: Returns: None (Unit).

onRoomWatermarkDisabledChanged(operatorUid, disabled)

Description: The room’s watermark-disabled state changed. Parameters: Returns: None (Unit).

onRoomLockedChanged(operatorUid, locked)

Description: The room’s locked state changed. Parameters: Returns: None (Unit).

onWaitingRoomDisabledChanged(operatorUid, disabled)

Description: The waiting room was enabled or disabled. Parameters: Returns: None (Unit).

onRoomHostMove(sourceUid, targetUid)

Description: The host role was transferred from the original member to the target member. Parameters: Returns: None (Unit).

Recording, sharing, and raise hand

onCloudRecordStatusChange(type, status, errorMessage)

Description: The status of a cloud recording task changed. Parameters: Returns: None (Unit).

onMcuAlarmReceived(operatorUid, alarm)

Description: Received an MCU alarm sent privately to this user. Parameters: Returns: None (Unit).

onRoomShareStart(shareUid, shareType)

Description: The specified member started screen or whiteboard sharing. Parameters: Returns: None (Unit).

onRoomShareStop(shareUid, shareType)

Description: The specified member stopped screen or whiteboard sharing. Parameters: Returns: None (Unit).

onAdminRoomShareStop(shareUid, shareType)

Description: The host forcibly stopped the specified member’s sharing. Parameters: Returns: None (Unit).

onRoomHandUpChanged(operatorUid, enabled, handUpType)

Description: A room member’s raise hand state changed. Parameters: Returns: None (Unit).

Sub-meetings and sign-in

onAdminRoomStartSubMeeting(subMeetingId, subTitle, uids)

Description: The host started the specified sub-meeting. Parameters: Returns: None (Unit).

onAdminRoomStopSubMeeting(mainMeetingId, subMeetingId, subTitle)

Description: The host ended the specified sub-meeting. Parameters: Returns: None (Unit).

onSignInActivity(hostName, epoch, beginAt, duration, endAt, description)

Description: Received a message that an in-meeting sign-in activity started. Parameters: Returns: None (Unit).

onSignInFinish(hostName, epoch)

Description: Received a message that an in-meeting sign-in activity ended. Parameters: Returns: None (Unit).