Skip to main content
说明:RoomMsgEvent 是房间消息事件回调接口,用于接收聊天消息与系统消息。

回调方法

onReceiveChatMessage(operatorUid, message, chatMsgType)

方法说明:收到聊天消息事件。
参数说明:
  • operatorUidString,发送者 uid。
  • messageString,消息内容。
  • chatMsgTypeChatMsgType,消息类型。 返回值说明:无(Unit)。

onReceiveSystemMessage(message, chatMsgType)

方法说明:收到系统消息事件。
参数说明:
  • messageString,消息内容。
  • chatMsgTypeChatMsgType,消息类型。 返回值说明:无(Unit)。