JoinChatRoom

public native void JoinChatRoom(String targetId, int categoryId, int messageCount, boolean flag, NativeObject.PublishAckListener callback, int joinMode)

加入聊天室

Parameters

targetId

会话 Id

categoryId

会话类型

messageCount

加入时同步的消息条数

flag

是否使用缓存时间和服务端同步消息。当断线重连时,SDK 会自动重新加入之前的聊天室,此时需要使用上次缓存的时间进行消息同步。

callback

回调

joinMode

public native void JoinChatRoom(String targetId, int categoryId, int messageCount, boolean flag, NativeObject.JoinChatroomCallback callback, int joinMode)