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