new EMChatroomManagerListener()
- Source:
EMChatroomManagerListener constructor.
Methods
onAddAdminFromChatroom(callback) → {void}
- Source:
Callback user when user promote to admin.
Parameters:
Returns:
-
Type
-
void
onAddMutesFromChatroom(callback) → {void}
- Source:
Callback user when user add to chat room mute list.
Parameters:
Returns:
-
Type
-
void
onAssignOwnerFromChatroom(callback) → {void}
- Source:
Callback user when promote to chatroom owner.
Parameters:
Returns:
-
Type
-
void
onLeaveChatroom(callback) → {void}
- Source:
Callback user when user is kicked out from a chatroom or the chatroom is destroyed.
Parameters:
Returns:
-
Type
-
void
onMemberJoinedChatroom(callback) → {void}
- Source:
Callback user when a user join the chatroom.
Parameters:
Returns:
-
Type
-
void
onMemberLeftChatroom(callback) → {void}
- Source:
Callback user when a user leave the chatroom.
Parameters:
Returns:
-
Type
-
void
onRemoveAdminFromChatroom(callback) → {void}
- Source:
Callback user when user cancel admin.
Parameters:
Returns:
-
Type
-
void
onRemoveMutesFromChatroom(callback) → {void}
- Source:
Callback user when user remove from chat room mute list.
Parameters:
Returns:
-
Type
-
void
onUpdateAnnouncementFromChatroom(callback) → {void}
- Source:
Callback user when chatroom's announcement change.
Parameters:
Returns:
-
Type
-
void
(inner) onAddAdminFromChatroomCallback(chatroom, admin) → {void}
- Source:
Parameters:
Name |
Type |
Description |
chatroom |
EMChatroom
|
聊天室对象 |
admin |
String
|
管理员ID |
Returns:
-
Type
-
void
(inner) onAddMutesFromChatroomCallback(chatroom, mutes, muteExpire) → {void}
- Source:
Parameters:
Name |
Type |
Description |
chatroom |
EMChatroom
|
聊天室对象 |
mutes |
Array
|
String mute array. |
muteExpire |
Number
|
禁言时长 |
Returns:
-
Type
-
void
(inner) onAssignOwnerFromChatroomCallback(chatroom, newOwner, oldOwner) → {void}
- Source:
Parameters:
Name |
Type |
Description |
chatroom |
EMChatroom
|
聊天室对象 |
newOwner |
String
|
新群主 |
oldOwner |
String
|
旧群主 |
Returns:
-
Type
-
void
(inner) onLeaveChatroomCallback(chatroom, reason) → {void}
- Source:
Parameters:
Name |
Type |
Description |
chatroom |
EMChatroom
|
聊天室对象 |
reason |
String
|
退出原因 |
Returns:
-
Type
-
void
(inner) onMemberJoinedChatroomCallback(chatroom, member) → {void}
- Source:
Parameters:
Name |
Type |
Description |
chatroom |
EMChatroom
|
聊天室对象 |
member |
String
|
加入的成员ID |
Returns:
-
Type
-
void
(inner) onMemberLeftChatroomCallback(chatroom, member) → {void}
- Source:
Parameters:
Name |
Type |
Description |
chatroom |
EMChatroom
|
聊天室对象 |
member |
String
|
离开的成员ID |
Returns:
-
Type
-
void
(inner) onRemoveAdminFromChatroomCallback(chatroom, admin) → {void}
- Source:
Parameters:
Name |
Type |
Description |
chatroom |
EMChatroom
|
聊天室对象 |
admin |
String
|
管理员ID |
Returns:
-
Type
-
void
(inner) onRemoveMutesFromChatroomCallback(chatroom, mutes) → {void}
- Source:
Parameters:
Name |
Type |
Description |
chatroom |
EMChatroom
|
聊天室对象 |
mutes |
Array
|
String mute array. |
Returns:
-
Type
-
void
(inner) onUpdateAnnouncementFromChatroomCallback(chatroom, announcement) → {void}
- Source:
Parameters:
Name |
Type |
Description |
chatroom |
EMChatroom
|
聊天室对象 |
announcement |
String
|
公告内容 |
Returns:
-
Type
-
void