EMGroupManagerListener

EMGroupManagerListener

new EMGroupManagerListener(manager)

Source:
EMGroupManagerListener constructor.
Parameters:
Name Type Description
manager Object

Methods

onAddAdminFromGroup(callback) → {void}

Source:
Callback user when promote to group admin.
Parameters:
Name Type Description
callback EMGroupManagerListener~onAddAdminFromGroupCallback
Returns:
Type
void

onAddMutesFromGroup(callback) → {void}

Source:
Callback user when user add to group mute list.
Parameters:
Name Type Description
callback EMGroupManagerListener~onAddMutesFromGroupCallback
Returns:
Type
void

onAssignOwnerFromGroup(callback) → {void}

Source:
Callback user when promote to group owner.
Parameters:
Name Type Description
callback EMGroupManagerListener~onAssignOwnerFromGroupCallback
Returns:
Type
void

onAutoAcceptInvitationFromGroup(callback) → {void}

Source:
Callback user when user is invited to a group. Note: User has been added to the group when received this callback.
Parameters:
Name Type Description
callback EMGroupManagerListener~onAutoAcceptInvitationFromGroupCallback
Returns:
Type
void

onDeleteSharedFileFromGroup(callback) → {void}

Source:
Callback user when group admin or owner or file uploader delete share file.
Parameters:
Name Type Description
callback EMGroupManagerListener~onDeleteSharedFileFromGroupCallback
Returns:
Type
void

onLeaveGroup(callback) → {void}

Source:
Callback user when user is kicked out from a group or the group is destroyed.
Parameters:
Name Type Description
callback EMGroupManagerListener~onLeaveGroupCallback
Returns:
Type
void

onMemberJoinedGroup(callback) → {void}

Source:
Callback user when a user join the group.
Parameters:
Name Type Description
callback EMGroupManagerListener~onMemberJoinedGroupCallback
Returns:
Type
void

onMemberLeftGroup(callback) → {void}

Source:
Callback user when a user leave the group.
Parameters:
Name Type Description
callback EMGroupManagerListener~onMemberLeftGroupCallback
Returns:
Type
void

onReceiveAcceptionFromGroup(callback) → {void}

Source:
Callback user when receive owner's approval.
Parameters:
Name Type Description
callback EMGroupManagerListener~onReceiveAcceptionFromGroupCallback
Returns:
Type
void

onReceiveInviteAcceptionFromGroup(callback) → {void}

Source:
Callback user when the user accept to join the group.
Parameters:
Name Type Description
callback EMGroupManagerListener~onReceiveInviteAcceptionFromGroupCallback
Returns:
Type
void

onReceiveInviteDeclineFromGroup(callback) → {void}

Source:
Callback user when the user decline to join the group.
Parameters:
Name Type Description
callback EMGroupManagerListener~onReceiveInviteDeclineFromGroupCallback
Returns:
Type
void

onReceiveInviteFromGroup(callback) → {void}

Source:
Callback user when user is invited to a group. Note: User can accept or decline the invitation.
Parameters:
Name Type Description
callback EMGroupManagerListener~onReceiveInviteFromGroupCallback
Returns:
Type
void

onReceiveJoinGroupApplication(callback) → {void}

Source:
Callback user when receive a join group application.
Parameters:
Name Type Description
callback EMGroupManagerListener~onReceiveJoinGroupApplicationCallback
Returns:
Type
void

onReceiveRejectionFromGroup(callback) → {void}

Source:
Callback user when receive group owner's rejection.
Parameters:
Name Type Description
callback EMGroupManagerListener~onReceiveRejectionFromGroupCallback
Returns:
Type
void

onRemoveAdminFromGroup(callback) → {void}

Source:
Callback user when cancel admin.
Parameters:
Name Type Description
callback EMGroupManagerListener~onRemoveAdminFromGroupCallback
Returns:
Type
void

onRemoveMutesFromGroup(callback) → {void}

Source:
Callback user when user remove from group mute list.
Parameters:
Name Type Description
callback EMGroupManagerListener~onRemoveMutesFromGroupCallback
Returns:
Type
void

onUpdateAnnouncementFromGroup(callback) → {void}

Source:
Callback user when update group announcement.
Parameters:
Name Type Description
callback EMGroupManagerListener~onUpdateAnnouncementFromGroupCallback
Returns:
Type
void

onUpdateMyGroupList(callback) → {void}

Source:
Callback user when login user's group list is updated.
Parameters:
Name Type Description
callback EMGroupManagerListener~onUpdateMyGroupListCallback
Returns:
Type
void

onUploadSharedFileFromGroup(callback) → {void}

Source:
Callback user when group member upload share file.
Parameters:
Name Type Description
callback EMGroupManagerListener~onUploadSharedFileFromGroupCallback
Returns:
Type
void

(inner) onAddAdminFromGroupCallback(group, admin) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
admin String
Returns:
Type
void

(inner) onAddMutesFromGroupCallback(group, muteExpire) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
mutes. Array String mute array.
muteExpire Number
Returns:
Type
void

(inner) onAssignOwnerFromGroupCallback(group, newOwner, oldOwner) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
newOwner String
oldOwner String
Returns:
Type
void

(inner) onAutoAcceptInvitationFromGroupCallback(group, invitee, inviteMessage) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
invitee String
inviteMessage String
Returns:
Type
void

(inner) onDeleteSharedFileFromGroupCallback(group, fileId) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
fileId String
Returns:
Type
void

(inner) onLeaveGroupCallback(group, reason) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
reason String
Returns:
Type
void

(inner) onMemberJoinedGroupCallback(group, Owner) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
Owner String
Returns:
Type
void

(inner) onMemberLeftGroupCallback(group, Owner) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
Owner String
Returns:
Type
void

(inner) onReceiveAcceptionFromGroupCallback(group) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
Returns:
Type
void

(inner) onReceiveInviteAcceptionFromGroupCallback(group, invitee) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
invitee String
Returns:
Type
void

(inner) onReceiveInviteDeclineFromGroupCallback(group, invitee, reason) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
invitee String
reason String
Returns:
Type
void

(inner) onReceiveInviteFromGroupCallback(groupId, inviter, inviteMessage) → {void}

Source:
Parameters:
Name Type Description
groupId String
inviter String
inviteMessage String
Returns:
Type
void

(inner) onReceiveJoinGroupApplicationCallback(group, from, message) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
from String
message String
Returns:
Type
void

(inner) onReceiveRejectionFromGroupCallback(groupId, reason) → {void}

Source:
Parameters:
Name Type Description
groupId String
reason String
Returns:
Type
void

(inner) onRemoveAdminFromGroupCallback(group, admin) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
admin String
Returns:
Type
void

(inner) onRemoveMutesFromGroupCallback(group) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
mutes. Array String mute array.
Returns:
Type
void

(inner) onUpdateAnnouncementFromGroupCallback(group, announcement) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
announcement String
Returns:
Type
void

(inner) onUpdateMyGroupListCallback() → {void}

Source:
Parameters:
Name Type Description
list. Array EMGroup array.
Returns:
Type
void

(inner) onUploadSharedFileFromGroupCallback(group, sharedFile) → {void}

Source:
Parameters:
Name Type Description
group EMGroup
sharedFile EMMucSharedFile
Returns:
Type
void