Skip to main content
MeetingUserEvent carries the current meeting’s member, member permission, and member track events and is registered through MeetingEngine.userEvent. You can extend MeetingUserSimpleEvent and override only what you need.

Usage notes

  • Event parameters mainly provide the UID of the member that changed and the incremental state; when you need a full member or track snapshot, query it through MeetingEngine.infosManager.
  • You can assign the listener before entering the meeting; it is cleared after you exit the meeting.
  • onUserEnter() only provides the UID; when you need full information, query it through MeetingEngine.infosManager.getMemberByUid(uid).
  • The audience isn’t included in the full member list; identity changes are reported through onMeMembershipChanged().

Member lifecycle

onExitRoom(reason)

Description: The current user exited the meeting because they were removed, replaced, timed out on heartbeat, or the channel was destroyed, among other reasons. Parameters: Returns: None (Unit).

onUserEnter(uid)

Description: A remote user entered the current meeting. Parameters: Returns: None (Unit).

onUserExit(memberInfo)

Description: A remote user exited the current meeting. Parameters: Returns: None (Unit).

onMemberUpdated(memberInfo)

Description: The Meeting information of the specified member was refreshed. Parameters: Returns: None (Unit).

onUserNameChanged(targetUid, nickname)

Description: A member’s nickname changed. Parameters: Returns: None (Unit).

onUserRoleChanged(targetUid, roleType)

Description: A member’s role changed. Parameters: Returns: None (Unit).

onMeMembershipChanged(isMember)

Description: The current user’s identity changed between full member and audience. Parameters: Returns: None (Unit).

Devices and permissions

onUserCameraStateChanged(targetUid, cameraState, reason)

Description: A member’s camera state changed. Parameters: Returns: None (Unit).

onUserMicStateChanged(targetUid, micState, reason)

Description: A member’s mic state changed. Parameters: Returns: None (Unit).

onUserDrawDisabledChange(operatorUid, targetUid, disabled)

Description: The specified member’s whiteboard drawing permission changed. Parameters: Returns: None (Unit).

onUserChatDisabledChange(operatorUid, disabled)

Description: The current member’s chat permission changed. Parameters: Returns: None (Unit).

onHandUpConfirm(operatorUid, targetUid, approved, handUpType)

Description: The host handled the specified member’s raise hand request. Parameters: Returns: None (Unit).

Host requests and member replies

onRequestOpenCamera(operatorUid)

Description: The current user received a request to turn on the camera. Parameters: Returns: None (Unit). Reply with confirmOpenCameraAgree() / confirmOpenCameraRefuse().

onRequestOpenMic(operatorUid)

Description: The current user received a request to turn on the mic. Parameters: Returns: None (Unit). Reply with confirmOpenMicAgree() / confirmOpenMicRefuse().

onRequestStartShare(operatorUid)

Description: The current user received a request to start screen sharing. Parameters: Returns: None (Unit). Reply with confirmStartScreenShareAgree() / confirmStartScreenShareRefuse().

onUserConfirmOpenCamera(operatorUid, approved)

Description: The target member replied to the request to turn on the camera. Parameters: Returns: None (Unit).

onUserConfirmOpenMic(operatorUid, approved)

Description: The target member replied to the request to turn on the mic. Parameters: Returns: None (Unit).

Waiting room and meeting moves

onMoveInWaitingRoom(operatorUid, nickname)

Description: The current user was moved into the waiting room. Parameters: Returns: None (Unit).

onUserEnterWaitingRoom(uid, nickname)

Description: A user entered the waiting room. Parameters: Returns: None (Unit).

onUserExitWaitingRoom(uid, nickname)

Description: A user exited the waiting room. Parameters: Returns: None (Unit).

onRequestMoveToMainMeetOrSubMeet(targetMeetingId, targetMeetingTitle)

Description: The current user was asked to move to the main meeting or the specified sub-meeting. Parameters: Returns: None (Unit).

Track changes

onTrackAdded(uid, trackInfo)

Description: A remote member added a media track. Parameters: Returns: None (Unit).

onTrackUpdated(uid, trackInfo)

Description: The information of one of a remote member’s media tracks was updated. Parameters: Returns: None (Unit).

onTrackRemoved(uid, trackInfo)

Description: A remote member removed a media track. Parameters: Returns: None (Unit).