#import <EMGroupManagerDelegate.h>
User B will receive this callback after SDK automatically accept user A's group invitation. Set EMOptions's isAutoAcceptGroupInvitation property to YES for this delegate method
- Parameters
-
| aGroup | Group instance |
| aInviter | Inviter |
| aMessage | Invite message |
| - (void) didJoinGroup: |
|
(EMGroup *) |
aGroup |
| inviter: |
|
(NSString *) |
aInviter |
| message: |
|
(NSString *) |
aMessage |
|
|
| |
|
optional |
Delegate method will be invoked after SDK automatically accepted the group invitation
User B will receive this callback after SDK automatically accept user A's group invitation, need set EMOptions's isAutoAcceptGroupInvitation property to YES
- Parameters
-
| aGroup | Group instance |
| aInviter | Inviter |
| aMessage | Invite message |
| - (void) didLeaveGroup: |
|
(EMGroup *) |
aGroup |
| reason: |
|
(EMGroupLeaveReason) |
aReason |
|
|
| |
|
optional |
Delegate method will be invoked when user leaves a group
- Parameters
-
| aGroup | Group instance |
| aReason | Leave reason |
Delegate method will be invoked when a group invitation is accepted
After user B accepted user A‘s group invitation, user A will receive this callback
- Parameters
-
| aGroup | Group to join |
| aInvitee | Invitee |
User A will receive this callback after group's owner accepted it's application, group's style is EMGroupStylePublicJoinNeedApproval
- Parameters
-
Delegate method will be invoked when a group invitation is declined
After user B declined user A's group invitation, user A will receive the callback
- Parameters
-
| aGroup | Group instance |
| aInvitee | Invitee |
| aReason | Decline reason |
User A will receive this callback after group's owner declined the join group request
- Parameters
-
| aGroupId | Group id |
| aReason | Decline reason |
Delegate method will be invoked when user receives a group invitation
After user A invites user B into the group, user B will receive this callback
- Parameters
-
| aGroupId | The group ID |
| aInviter | Inviter |
| aMessage | Invite message |
Group's owner receive user's applicaton of joining group, group's style is EMGroupStylePublicJoinNeedApproval
- Parameters
-
| aGroup | Group |
| aApplicant | The applicant |
| aReason | The applicant's message |
Callback of leave group
- Parameters
-
| aGroup | Group instance |
| aReason | Leave reason |
Group List changed
- Parameters
-
| aGroupList | Group list<EMGroup> |
| - (void) groupAdminListDidUpdate: |
|
(EMGroup *) |
aGroup |
| addedAdmin: |
|
(NSString *) |
aAdmin |
|
|
| |
|
optional |
User is added to the admin list
- Parameters
-
| aGroup | Group |
| aAdmin | User to be added |
| - (void) groupAdminListDidUpdate: |
|
(EMGroup *) |
aGroup |
| removedAdmin: |
|
(NSString *) |
aAdmin |
|
|
| |
|
optional |
User is removed to the admin list
- Parameters
-
| aGroup | Group |
| aAdmin | User to be removed |
| - (void) groupInvitationDidAccept: |
|
(EMGroup *) |
aGroup |
| invitee: |
|
(NSString *) |
aInvitee |
|
|
| |
|
optional |
Delegate method will be invoked when the group invitation is accepted
After user B accepted user A‘s group invitation, user A will receive this callback
- Parameters
-
| aGroup | User joined group |
| aInvitee | Invitee |
| - (void) groupInvitationDidDecline: |
|
(EMGroup *) |
aGroup |
| invitee: |
|
(NSString *) |
aInvitee |
| reason: |
|
(NSString *) |
aReason |
|
|
| |
|
optional |
Delegate method will be invoked when the group invitation is declined.
After user B declined user A's group invitation, user A will receive the callback
- Parameters
-
| aGroup | Group instance |
| aInvitee | Invitee |
| aReason | Decline reason |
| - (void) groupInvitationDidReceive: |
|
(NSString *) |
aGroupId |
| inviter: |
|
(NSString *) |
aInviter |
| message: |
|
(NSString *) |
aMessage |
|
|
| |
|
optional |
Delegate method will be invoked when receiving a group invitation
After user A invites user B into the group, user B will receive this callback
- Parameters
-
| aGroupId | The group ID |
| aInviter | Inviter |
| aMessage | Invitation message |
| - (void) groupListDidUpdate: |
|
(NSArray *) |
aGroupList |
|
|
optional |
Group List updated
- Parameters
-
| aGroupList | Group list<EMGroup> |
| - (void) groupMuteListDidUpdate: |
|
(EMGroup *) |
aGroup |
| addedMutedMembers: |
|
(NSArray *) |
aMutedMembers |
| muteExpire: |
|
(NSInteger) |
aMuteExpire |
|
|
| |
|
optional |
Users are added to the mute list
- Parameters
-
| aGroup | Group |
| aMutedMembers | Users to be added |
| aMuteExpire | Mute expire, not available at this time |
| - (void) groupMuteListDidUpdate: |
|
(EMGroup *) |
aGroup |
| removedMutedMembers: |
|
(NSArray *) |
aMutedMembers |
|
|
| |
|
optional |
Users are removed from the mute list
- Parameters
-
| aGroup | Group |
| aMutedMembers | Users to be removed |
| - (void) groupOwnerDidUpdate: |
|
(EMGroup *) |
aGroup |
| newOwner: |
|
(NSString *) |
aNewOwner |
| oldOwner: |
|
(NSString *) |
aOldOwner |
|
|
| |
|
optional |
Owner is updated
- Parameters
-
| aGroup | Group |
| aNewOwner | New Owner |
| aOldOwner | Old Owner |
| - (void) joinGroupRequestDidApprove: |
|
(EMGroup *) |
aGroup |
|
|
optional |
Delegate method will be invoked when the group owner approves a join group request
User A will receive this callback after group's owner approve the group request, group's style is EMGroupStylePublicJoinNeedApproval
- Parameters
-
| - (void) joinGroupRequestDidDecline: |
|
(NSString *) |
aGroupId |
| reason: |
|
(NSString *) |
aReason |
|
|
| |
|
optional |
Delegate method will be invoked when the group owner declines a join group request
User A will receive this callback after group's owner declined the group request, group's style is EMGroupStylePublicJoinNeedApproval
- Parameters
-
| aGroupId | Group id |
| aReason | Decline reason |
| - (void) joinGroupRequestDidReceive: |
|
(EMGroup *) |
aGroup |
| user: |
|
(NSString *) |
aUsername |
| reason: |
|
(NSString *) |
aReason |
|
|
| |
|
optional |
Delegate method will be invoked when the group owner receives a group request and group's style is EMGroupStylePublicJoinNeedApproval
- Parameters
-
| aGroup | Group instance |
| aUsername | The user initialized the group join request |
| aReason | The user's message |
The documentation for this protocol was generated from the following file: