MeetingImEvent receives ongoing state and business messages that share the lifecycle of the IM connection in the Engine, and is registered through MeetingEngine.imEvent. You can extend MeetingImSimpleEvent and override only what you need.
Usage notes
- The IM connection is independent of the current meeting; out-of-meeting messages such as meeting reminders, waiting room moves, waiting-for-host notifications, and sub-meeting help requests are also dispatched through this interface.
-
Call
enableIm()first to establish the connection; an intentional disconnect caused bydisableIm()orrelease()doesn’t triggeronImDisconnected(). - Callbacks stay on the actual IM source thread; switch to the main thread before updating the UI.
Methods
onImConnected(uid, sid)
Returns: None (
Unit).
onImDisconnected(reason, statusCode, message)
Returns: None (
Unit).
onImReconnecting()
Unit).
onImReconnected()
Unit).
onImMessage(uid, sid, name, action, content)
Returns: None (
Unit).
onCallReceived(uid, nickname, callingMsg)
Returns: None (
Unit).
onMeetingRemind(uid, meetingRemind)
Returns: None (
Unit).
onMoveOutWaitingRoom(uid, moveOutWaitingRoom)
Returns: None (
Unit).
onUserHelpSubMeeting(uid, userHelpSubMeeting)
Returns: None (
Unit).
onHostEntered(uid, notice)
2.0.48, with an empty default implementation. The current user got MeetingServerErrorCode.ENTER_BEFORE_HOST (2120) when joining and is waiting for the host; the host (or a co-host or the creator) has now joined the meeting. Join again with the original password; if the meeting also has the waiting room on, joining again returns 2118 and moves the user into the waiting room.
Parameters:
Returns: None (
Unit).
onWaitingMeetingEnd(uid, notice)
2.0.48, with an empty default implementation. The current user is in the waiting room or waiting for the host, and the meeting being waited for has ended or been cancelled; the app should leave the waiting page.
Parameters:
Returns: None (
Unit).