toggle menu
Android-Chatroom-SDK
5.12.0
io.rong.imlib
switch theme
search in API
Android-Chatroom-SDK
/
io.rong.imlib.model
/
ChatRoomSyncEvent
Chat
Room
Sync
Event
public
class
ChatRoomSyncEvent
事件发生时,当前用户在线时能收到该事件 事件发生时,当前用户不在线,那么用户上线后,不会收到该事件。
Since
5.4.5
Members
Constructors
Chat
Room
Sync
Event
Link copied to clipboard
public
void
ChatRoomSyncEvent
(
)
Types
Chat
Room
Sync
Status
Link copied to clipboard
public
enum
ChatRoomSyncStatus
Chat
Room
Sync
Status
Reason
Link copied to clipboard
public
enum
ChatRoomSyncStatusReason
离开原因,只有当 status 为 Quit 时,reason 才有效
Properties
chatroom
Id
Link copied to clipboard
public
String
chatroomId
聊天室 Id。
extra
Link copied to clipboard
public
String
extra
附加信息
reason
Link copied to clipboard
public
ChatRoomSyncEvent.ChatRoomSyncStatusReason
reason
reason 释义:如果 status 是 Quit 的情况,区分离开类型: 1,自己主动离开, 2,多端加入互踢导致离开 status 是 Join 的情况,无需关心 reason 值
status
Link copied to clipboard
public
ChatRoomSyncEvent.ChatRoomSyncStatus
status
变更的状态,0:离开, 1:加入。
time
Link copied to clipboard
public
long
time
用户加入/退出/被踢的时间戳,精确到毫秒
Functions
get
Chatroom
Id
Link copied to clipboard
public
String
getChatroomId
(
)
get
Extra
Link copied to clipboard
public
String
getExtra
(
)
get
Reason
Link copied to clipboard
public
ChatRoomSyncEvent.ChatRoomSyncStatusReason
getReason
(
)
get
Status
Link copied to clipboard
public
ChatRoomSyncEvent.ChatRoomSyncStatus
getStatus
(
)
get
Time
Link copied to clipboard
public
long
getTime
(
)
set
Chatroom
Id
Link copied to clipboard
public
void
setChatroomId
(
String
chatroomId
)
set
Extra
Link copied to clipboard
public
void
setExtra
(
String
extra
)
set
Reason
Link copied to clipboard
public
void
setReason
(
ChatRoomSyncEvent.ChatRoomSyncStatusReason
reason
)
set
Status
Link copied to clipboard
public
void
setStatus
(
ChatRoomSyncEvent.ChatRoomSyncStatus
status
)
set
Time
Link copied to clipboard
public
void
setTime
(
long time
)