Join Chat Room
public native void JoinChatRoom(String targetId, int categoryId, int messageCount, boolean flag, NativeObject.PublishAckListener callback, int joinMode)
加入聊天室
Parameters
target Id
会话 Id
category Id
会话类型
message Count
加入时同步的消息条数
flag
是否使用缓存时间和服务端同步消息。当断线重连时,SDK 会自动重新加入之前的聊天室,此时需要使用上次缓存的时间进行消息同步。
callback
回调
join Mode
public native void JoinChatRoom(String targetId, int categoryId, int messageCount, boolean flag, NativeObject.JoinChatroomCallback callback, int joinMode)