hyphenate_SDK3.0
3.6.0
hyphenatejavaIMSDK
|
Public 成员函数 | |
void | onChatRoomDestroyed (final String roomId, final String roomName) |
void | onMemberJoined (final String roomId, final String participant) |
void | onMemberExited (final String roomId, final String roomName, final String participant) |
void | onRemovedFromChatRoom (final int reason, final String roomId, final String roomName, final String participant) |
void | onMuteListAdded (final String chatRoomId, final List< String > mutes, final long expireTime) |
void | onMuteListRemoved (final String chatRoomId, final List< String > mutes) |
void | onAdminAdded (final String chatRoomId, final String admin) |
void | onAdminRemoved (final String chatRoomId, final String admin) |
void | onOwnerChanged (final String chatRoomId, final String newOwner, final String oldOwner) |
void | onAnnouncementChanged (String chatRoomId, String announcement) |
void com.hyphenate.EMChatRoomChangeListener.onAdminAdded | ( | final String | chatRoomId, |
final String | admin | ||
) |
有成员提升为管理员权限
chatRoomId | 聊天室id |
admin | 提升的管理员 |
void com.hyphenate.EMChatRoomChangeListener.onAdminRemoved | ( | final String | chatRoomId, |
final String | admin | ||
) |
移除管理员权限
chatRoomId | 聊天室id |
admin | 被移除的管理员 |
void com.hyphenate.EMChatRoomChangeListener.onAnnouncementChanged | ( | String | chatRoomId, |
String | announcement | ||
) |
聊天室公告更改事件
chatRoomId | 聊天室id |
announcement | 更新的公告内容 |
void com.hyphenate.EMChatRoomChangeListener.onChatRoomDestroyed | ( | final String | roomId, |
final String | roomName | ||
) |
聊天室被解散。
roomId | 聊天室id |
roomName | 聊天室名称 |
void com.hyphenate.EMChatRoomChangeListener.onMemberExited | ( | final String | roomId, |
final String | roomName, | ||
final String | participant | ||
) |
聊天室成员主动退出事件
roomId | 聊天室id |
roomName | 聊天室名字 |
participant | 退出的成员的username |
void com.hyphenate.EMChatRoomChangeListener.onMemberJoined | ( | final String | roomId, |
final String | participant | ||
) |
聊天室加入新成员事件
roomId | 聊天室id |
participant | 新成员username |
void com.hyphenate.EMChatRoomChangeListener.onMuteListAdded | ( | final String | chatRoomId, |
final List< String > | mutes, | ||
final long | expireTime | ||
) |
有成员被禁言
chatRoomId | 聊天室id |
mutes | 禁言的成员 |
expireTime | 禁言有效期,单位是毫秒。 |
void com.hyphenate.EMChatRoomChangeListener.onMuteListRemoved | ( | final String | chatRoomId, |
final List< String > | mutes | ||
) |
成员从禁言列表中移除
chatRoomId | 聊天室id |
mutes | 从禁言列表中移除的成员名单 |
void com.hyphenate.EMChatRoomChangeListener.onOwnerChanged | ( | final String | chatRoomId, |
final String | newOwner, | ||
final String | oldOwner | ||
) |
转移拥有者
chatRoomId | 聊天室id |
newOwner | 新所有者 |
oldOwner | 原聊天室所有者 |
void com.hyphenate.EMChatRoomChangeListener.onRemovedFromChatRoom | ( | final int | reason, |
final String | roomId, | ||
final String | roomName, | ||
final String | participant | ||
) |
聊天室人员被移除
reason | 被聊天室管理员移除或由于当前设备断网被服务器移出聊天室 com.hyphenate.chat.adapter.EMAChatRoomManagerListener#BE_KICKED com.hyphenate.chat.adapter.EMAChatRoomManagerListener#BE_KICKED_FOR_OFFLINE |
roomId | 聊天室id |
roomName | 聊天室名字 |
participant | 被移除人员的username |