EMChatroomManagerListener

EMChatroomManagerListener

new EMChatroomManagerListener()

Source:
EMChatroomManagerListener constructor.

Methods

onAddAdminFromChatroom(callback) → {void}

Source:
Callback user when user promote to admin.
Parameters:
Name Type Description
callback EMChatroomManagerListener~onAddAdminFromChatroomCallback 回调函数
Returns:
Type
void

onAddMutesFromChatroom(callback) → {void}

Source:
Callback user when user add to chat room mute list.
Parameters:
Name Type Description
callback EMChatroomManagerListener~onAddMutesFromChatroomCallback 回调函数
Returns:
Type
void

onAssignOwnerFromChatroom(callback) → {void}

Source:
Callback user when promote to chatroom owner.
Parameters:
Name Type Description
callback EMChatroomManagerListener~onAssignOwnerFromChatroomCallback 回调函数
Returns:
Type
void

onLeaveChatroom(callback) → {void}

Source:
Callback user when user is kicked out from a chatroom or the chatroom is destroyed.
Parameters:
Name Type Description
callback EMChatroomManagerListener~onLeaveChatroomCallback 回调函数
Returns:
Type
void

onMemberJoinedChatroom(callback) → {void}

Source:
Callback user when a user join the chatroom.
Parameters:
Name Type Description
callback EMChatroomManagerListener~onMemberJoinedChatroomCallback
Returns:
Type
void

onMemberLeftChatroom(callback) → {void}

Source:
Callback user when a user leave the chatroom.
Parameters:
Name Type Description
callback EMChatroomManagerListener~onMemberLeftChatroomCallback 回调函数
Returns:
Type
void

onRemoveAdminFromChatroom(callback) → {void}

Source:
Callback user when user cancel admin.
Parameters:
Name Type Description
callback EMChatroomManagerListener~onRemoveAdminFromChatroomCallback 回调函数
Returns:
Type
void

onRemoveMutesFromChatroom(callback) → {void}

Source:
Callback user when user remove from chat room mute list.
Parameters:
Name Type Description
callback EMChatroomManagerListener~onRemoveMutesFromChatroomCallback 回调函数
Returns:
Type
void

onUpdateAnnouncementFromChatroom(callback) → {void}

Source:
Callback user when chatroom's announcement change.
Parameters:
Name Type Description
callback EMChatroomManagerListener~onUpdateAnnouncementFromChatroomCallback 回调函数
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