Interface IZegoIMCallback
-
public interface IZegoIMCallback
IM 回调,用于接收即时通信内容。Copyright © 2017 Zego. All rights reserved.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onRecvBigRoomMessage(java.lang.String roomID, ZegoBigRoomMessage[] listMsg)
void
onRecvRoomMessage(java.lang.String roomID, ZegoRoomMessage[] listMsg)
收到房间的广播消息。void
onUpdateOnlineCount(java.lang.String roomID, int onlineCount)
房间总人数更新通知void
onUserUpdate(ZegoUserState[] listUser, int updateType, java.lang.String roomID)
房间成员更新回调
-
-
-
Method Detail
-
onUserUpdate
void onUserUpdate(ZegoUserState[] listUser, int updateType, java.lang.String roomID)
房间成员更新回调仅在登录前通过
ZegoLiveRoom.setRoomConfig(boolean, boolean)
设置 userStateUpdate 为 true 后,房间内其他成员才能在发生成员增减时收到此回调- Parameters:
listUser
- 成员更新列表updateType
- 参考ZegoIM.UserUpdateType
roomID
- 房间 ID 在登录或者重连成功之后,如果房间中有除自己外的其它用户,将会回调一次全量更新数据,后续用户更新将会回调增量数据- See Also:
ZegoLiveRoom.setRoomConfig(boolean, boolean)
-
onRecvRoomMessage
void onRecvRoomMessage(java.lang.String roomID, ZegoRoomMessage[] listMsg)
收到房间的广播消息。- Parameters:
roomID
- 房间 IDlistMsg
- 消息列表, 每条消息都将包含消息内容,消息分类,消息类型,发送者等信息- See Also:
ZegoLiveRoom.sendRoomMessage(int, int, String, IZegoRoomMessageCallback)
-
onUpdateOnlineCount
void onUpdateOnlineCount(java.lang.String roomID, int onlineCount)
房间总人数更新通知- Parameters:
roomID
- 房间 IDonlineCount
- 房间在线总人数
-
onRecvBigRoomMessage
void onRecvBigRoomMessage(java.lang.String roomID, ZegoBigRoomMessage[] listMsg)
-
-