Skip to main content
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 by disableIm() or release() doesn’t trigger onImDisconnected().
  • Callbacks stay on the actual IM source thread; switch to the main thread before updating the UI.

Methods

onImConnected(uid, sid)

Description: IM established its connection for the first time. Parameters: Returns: None (Unit).

onImDisconnected(reason, statusCode, message)

Description: IM disconnected unintentionally. Parameters: Returns: None (Unit).

onImReconnecting()

Description: IM started reconnecting automatically after a disconnect. Parameters: None. Returns: None (Unit).

onImReconnected()

Description: IM reconnected automatically. Parameters: None. Returns: None (Unit).

onImMessage(uid, sid, name, action, content)

Description: Receives a raw IM message that Meeting didn’t parse into a dedicated business event. Parameters: Returns: None (Unit).

onCallReceived(uid, nickname, callingMsg)

Description: Received a meeting call invitation. Parameters: Returns: None (Unit).

onMeetingRemind(uid, meetingRemind)

Description: Received a scheduled meeting reminder. Parameters: Returns: None (Unit).

onMoveOutWaitingRoom(uid, moveOutWaitingRoom)

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

onUserHelpSubMeeting(uid, userHelpSubMeeting)

Description: Received a help request from a sub-meeting member. Parameters: Returns: None (Unit).

onHostEntered(uid, notice)

Description: Available since 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)

Description: Available since 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).