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, 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).