Join Existing Chatroom
public native void JoinExistingChatroom(String targetId, int categoryId, int messageCount, NativeObject.JoinChatroomCallback callback, boolean keepMsg, int joinMode)
加入已存在的聊天室。如果聊天室不存在,则加入失败。
Parameters
target Id
会话 Id
category Id
会话类型
message Count
加入时同步的消息条数。
callback
回调
keep Msg
是否使用缓存时间和服务端同步消息。当断线重连时,SDK 会自动重新加入之前的聊天室,此时需要使用上次缓存的时间进行消息同步。
join Mode
加入模式。内部为 RTC 进行的封装,目前已废弃。