JoinExistingChatroom

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

加入已存在的聊天室。如果聊天室不存在,则加入失败。

Parameters

targetId

会话 Id

categoryId

会话类型

messageCount

加入时同步的消息条数。

callback

回调

keepMsg

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

joinMode

加入模式。内部为 RTC 进行的封装,目前已废弃。