HyphenateChatSDK 4.10.0
EMGroupManagerDelegate.h
1
15#import <Foundation/Foundation.h>
16
24typedef NS_ENUM(NSInteger, EMGroupLeaveReason) {
25 EMGroupLeaveReasonBeRemoved = 0,
26 EMGroupLeaveReasonUserLeave,
27 EMGroupLeaveReasonDestroyed,
28};
29
30@class EMGroup;
32
40@protocol EMGroupManagerDelegate <NSObject>
41
42@optional
43
66- (void)groupInvitationDidReceive:(NSString *_Nonnull)aGroupId
67 groupName:(NSString *_Nonnull)aGroupName
68 inviter:(NSString *_Nonnull)aInviter
69 message:(NSString *_Nullable)aMessage;
70
71
87- (void)groupInvitationDidAccept:(EMGroup *_Nonnull)aGroup
88 invitee:(NSString *_Nonnull)aInvitee;
89
109- (void)groupInvitationDidDecline:(EMGroup *_Nonnull)aGroup
110 invitee:(NSString *_Nonnull)aInvitee
111 reason:(NSString *_Nullable)aReason;
112
135- (void)didJoinGroup:(EMGroup *_Nonnull)aGroup
136 inviter:(NSString *_Nonnull)aInviter
137 message:(NSString *_Nullable)aMessage;
138
152- (void)didLeaveGroup:(EMGroup *_Nonnull)aGroup
153 reason:(EMGroupLeaveReason)aReason;
154
174- (void)joinGroupRequestDidReceive:(EMGroup *_Nonnull)aGroup
175 user:(NSString *_Nonnull)aUsername
176 reason:(NSString *_Nullable)aReason;
177
195- (void)joinGroupRequestDidDecline:(NSString *_Nonnull)aGroupId
196 reason:(NSString *_Nullable)aReason
197 applicant:(NSString* _Nonnull )aApplicant;
198
218- (void)joinGroupRequestDidDecline:(NSString *_Nonnull)aGroupId
219 reason:(NSString *_Nullable)aReason
220 decliner:(NSString *_Nullable)aDecliner
221 applicant:(NSString* _Nonnull )aApplicant;
222
236- (void)joinGroupRequestDidApprove:(EMGroup *_Nonnull)aGroup;
237
249- (void)groupListDidUpdate:(NSArray<EMGroup *> *_Nonnull)aGroupList;
250
251
267- (void)groupMuteListDidUpdate:(EMGroup *_Nonnull)aGroup
268 addedMutedMembers:(NSArray<NSString *> *_Nonnull)aMutedMembers
269 muteExpire:(NSInteger)aMuteExpire;
270
284- (void)groupMuteListDidUpdate:(EMGroup *_Nonnull)aGroup
285 removedMutedMembers:(NSArray<NSString *> *_Nonnull)aMutedMembers;
286
300- (void)groupWhiteListDidUpdate:(EMGroup *_Nonnull)aGroup
301 addedWhiteListMembers:(NSArray<NSString *> *_Nonnull)aMembers;
302
316- (void)groupWhiteListDidUpdate:(EMGroup *_Nonnull)aGroup
317 removedWhiteListMembers:(NSArray<NSString *> *_Nonnull)aMembers;
318
319
333- (void)groupAllMemberMuteChanged:(EMGroup *_Nonnull)aGroup
334 isAllMemberMuted:(BOOL)aMuted;
335
349- (void)groupAdminListDidUpdate:(EMGroup *_Nonnull)aGroup
350 addedAdmin:(NSString *_Nonnull)aAdmin;
351
365- (void)groupAdminListDidUpdate:(EMGroup *_Nonnull)aGroup
366 removedAdmin:(NSString *_Nonnull)aAdmin;
367
383- (void)groupOwnerDidUpdate:(EMGroup *_Nonnull)aGroup
384 newOwner:(NSString *_Nonnull)aNewOwner
385 oldOwner:(NSString *_Nonnull)aOldOwner;
386
400- (void)userDidJoinGroup:(EMGroup *_Nonnull)aGroup
401 user:(NSString *_Nonnull)aUsername;
402
416- (void)userDidLeaveGroup:(EMGroup *_Nonnull)aGroup
417 user:(NSString *_Nonnull)aUsername;
418
432- (void)groupAnnouncementDidUpdate:(EMGroup *_Nonnull)aGroup
433 announcement:(NSString *_Nullable)aAnnouncement;
434
448- (void)groupFileListDidUpdate:(EMGroup *_Nonnull)aGroup
449 addedSharedFile:(EMGroupSharedFile *_Nonnull)aSharedFile;
450
464- (void)groupFileListDidUpdate:(EMGroup *_Nonnull)aGroup
465 removedSharedFile:(NSString *_Nonnull)aFileId;
466
480 - (void)groupStateChanged:(EMGroup *)aGroup
481 isDisabled:(BOOL)aDisabled;
482
494- (void)groupSpecificationDidUpdate:(EMGroup *)aGroup;
511- (void)onAttributesChangedOfGroupMember:(NSString *_Nonnull)groupId userId:(NSString *_Nonnull)userId attributes:(NSDictionary <NSString*,NSString*>*_Nullable)attributes operatorId:(NSString *_Nonnull)operatorId;
512
513#pragma mark - Deprecated methods
537- (void)groupInvitationDidReceive:(NSString *)aGroupId
538 inviter:(NSString *)aInviter
539 message:(NSString *)aMessage
540 __deprecated_msg("Use -groupInvitationDidReceive:groupName:inviter:message: instead");
541
557- (void)joinGroupRequestDidDecline:(NSString *_Nonnull)aGroupId
558 reason:(NSString *_Nullable)aReason EM_DEPRECATED_IOS(3_1_0, 4_2_0, "Use -joinGroupRequestDidDecline:reason:applicant: instead");
559@end
Definition: EMGroup.h:43
Definition: EMGroupSharedFile.h:24
Definition: EMGroupManagerDelegate.h:40