HyphenateChatSDK 3.9.9.1
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
193- (void)joinGroupRequestDidDecline:(NSString *_Nonnull)aGroupId
194 reason:(NSString *_Nullable)aReason;
195
209- (void)joinGroupRequestDidApprove:(EMGroup *_Nonnull)aGroup;
210
222- (void)groupListDidUpdate:(NSArray<EMGroup *> *_Nonnull)aGroupList;
223
224
240- (void)groupMuteListDidUpdate:(EMGroup *_Nonnull)aGroup
241 addedMutedMembers:(NSArray<NSString *> *_Nonnull)aMutedMembers
242 muteExpire:(NSInteger)aMuteExpire;
243
257- (void)groupMuteListDidUpdate:(EMGroup *_Nonnull)aGroup
258 removedMutedMembers:(NSArray<NSString *> *_Nonnull)aMutedMembers;
259
273- (void)groupWhiteListDidUpdate:(EMGroup *_Nonnull)aGroup
274 addedWhiteListMembers:(NSArray<NSString *> *_Nonnull)aMembers;
275
289- (void)groupWhiteListDidUpdate:(EMGroup *_Nonnull)aGroup
290 removedWhiteListMembers:(NSArray<NSString *> *_Nonnull)aMembers;
291
292
306- (void)groupAllMemberMuteChanged:(EMGroup *_Nonnull)aGroup
307 isAllMemberMuted:(BOOL)aMuted;
308
322- (void)groupAdminListDidUpdate:(EMGroup *_Nonnull)aGroup
323 addedAdmin:(NSString *_Nonnull)aAdmin;
324
338- (void)groupAdminListDidUpdate:(EMGroup *_Nonnull)aGroup
339 removedAdmin:(NSString *_Nonnull)aAdmin;
340
356- (void)groupOwnerDidUpdate:(EMGroup *_Nonnull)aGroup
357 newOwner:(NSString *_Nonnull)aNewOwner
358 oldOwner:(NSString *_Nonnull)aOldOwner;
359
373- (void)userDidJoinGroup:(EMGroup *_Nonnull)aGroup
374 user:(NSString *_Nonnull)aUsername;
375
389- (void)userDidLeaveGroup:(EMGroup *_Nonnull)aGroup
390 user:(NSString *_Nonnull)aUsername;
391
405- (void)groupAnnouncementDidUpdate:(EMGroup *_Nonnull)aGroup
406 announcement:(NSString *_Nullable)aAnnouncement;
407
421- (void)groupFileListDidUpdate:(EMGroup *_Nonnull)aGroup
422 addedSharedFile:(EMGroupSharedFile *_Nonnull)aSharedFile;
423
437- (void)groupFileListDidUpdate:(EMGroup *_Nonnull)aGroup
438 removedSharedFile:(NSString *_Nonnull)aFileId;
439
453 - (void)groupStateChanged:(EMGroup *)aGroup
454 isDisabled:(BOOL)aDisabled;
455
467- (void)groupSpecificationDidUpdate:(EMGroup *)aGroup;
468
469#pragma mark - Deprecated methods
493- (void)groupInvitationDidReceive:(NSString *)aGroupId
494 inviter:(NSString *)aInviter
495 message:(NSString *)aMessage
496 __deprecated_msg("Use -groupInvitationDidReceive:groupName:inviter:message: instead");
497@end
Definition: EMGroup.h:43
Definition: EMGroupSharedFile.h:24
Definition: EMGroupManagerDelegate.h:40