AgoraChatSDK 1.3.1
AgoraChatGroupManagerDelegate.h
1
9#import <Foundation/Foundation.h>
10
15typedef NS_ENUM(NSInteger, AgoraChatGroupLeaveReason) {
16 AgoraChatGroupLeaveReasonBeRemoved = 0,
17 AgoraChatGroupLeaveReasonUserLeave,
18 AgoraChatGroupLeaveReasonDestroyed,
19};
20
21@class AgoraChatGroup;
23
29
30@optional
31
44- (void)groupInvitationDidReceive:(NSString *_Nonnull)aGroupId
45 groupName:(NSString *_Nonnull)aGroupName
46 inviter:(NSString *_Nonnull)aInviter
47 message:(NSString *_Nullable)aMessage;
48
49
57- (void)groupInvitationDidAccept:(AgoraChatGroup *_Nonnull)aGroup
58 invitee:(NSString *_Nonnull)aInvitee;
59
70- (void)groupInvitationDidDecline:(AgoraChatGroup *_Nonnull)aGroup
71 invitee:(NSString *_Nonnull)aInvitee
72 reason:(NSString *_Nullable)aReason;
73
86- (void)didJoinGroup:(AgoraChatGroup *_Nonnull)aGroup
87 inviter:(NSString *_Nonnull)aInviter
88 message:(NSString *_Nullable)aMessage;
89
97- (void)didLeaveGroup:(AgoraChatGroup *_Nonnull)aGroup
98 reason:(AgoraChatGroupLeaveReason)aReason;
99
110- (void)joinGroupRequestDidReceive:(AgoraChatGroup *_Nonnull)aGroup
111 user:(NSString *_Nonnull)aUsername
112 reason:(NSString *_Nullable)aReason;
113
122- (void)joinGroupRequestDidDecline:(NSString *_Nonnull)aGroupId
123 reason:(NSString *_Nullable)aReason
124 applicant:(NSString* _Nonnull )aApplicant;
125
135- (void)joinGroupRequestDidDecline:(NSString *_Nonnull)aGroupId
136 reason:(NSString *_Nullable)aReason
137 decliner:(NSString *_Nullable)aDecliner
138 applicant:(NSString* _Nonnull )aApplicant;
139
146- (void)joinGroupRequestDidApprove:(AgoraChatGroup *_Nonnull)aGroup;
147
154- (void)groupListDidUpdate:(NSArray<AgoraChatGroup *> *_Nonnull)aGroupList;
155
156
165- (void)groupMuteListDidUpdate:(AgoraChatGroup *_Nonnull)aGroup
166 addedMutedMembers:(NSArray<NSString *> *_Nonnull)aMutedMembers
167 muteExpire:(NSInteger)aMuteExpire;
168
176- (void)groupMuteListDidUpdate:(AgoraChatGroup *_Nonnull)aGroup
177 removedMutedMembers:(NSArray<NSString *> *_Nonnull)aMutedMembers;
178
186- (void)groupWhiteListDidUpdate:(AgoraChatGroup *_Nonnull)aGroup
187 addedWhiteListMembers:(NSArray<NSString *> *_Nonnull)aMembers;
188
196- (void)groupWhiteListDidUpdate:(AgoraChatGroup *_Nonnull)aGroup
197 removedWhiteListMembers:(NSArray<NSString *> *_Nonnull)aMembers;
198
199
207- (void)groupAllMemberMuteChanged:(AgoraChatGroup *_Nonnull)aGroup
208 isAllMemberMuted:(BOOL)aMuted;
209
217- (void)groupAdminListDidUpdate:(AgoraChatGroup *_Nonnull)aGroup
218 addedAdmin:(NSString *_Nonnull)aAdmin;
219
227- (void)groupAdminListDidUpdate:(AgoraChatGroup *_Nonnull)aGroup
228 removedAdmin:(NSString *_Nonnull)aAdmin;
229
238- (void)groupOwnerDidUpdate:(AgoraChatGroup *_Nonnull)aGroup
239 newOwner:(NSString *_Nonnull)aNewOwner
240 oldOwner:(NSString *_Nonnull)aOldOwner;
241
249- (void)userDidJoinGroup:(AgoraChatGroup *_Nonnull)aGroup
250 user:(NSString *_Nonnull)aUsername;
251
259- (void)userDidLeaveGroup:(AgoraChatGroup *_Nonnull)aGroup
260 user:(NSString *_Nonnull)aUsername;
261
269- (void)groupAnnouncementDidUpdate:(AgoraChatGroup *_Nonnull)aGroup
270 announcement:(NSString *_Nullable)aAnnouncement;
271
279- (void)groupFileListDidUpdate:(AgoraChatGroup *_Nonnull)aGroup
280 addedSharedFile:(AgoraChatGroupSharedFile *_Nonnull)aSharedFile;
281
289- (void)groupFileListDidUpdate:(AgoraChatGroup *_Nonnull)aGroup
290 removedSharedFile:(NSString *_Nonnull)aFileId;
291
299 - (void)groupStateChanged:(AgoraChatGroup *)aGroup
300 isDisabled:(BOOL)aDisabled;
301
308- (void)groupSpecificationDidUpdate:(AgoraChatGroup *)aGroup;
318- (void)onAttributesChangedOfGroupMember:(NSString *_Nonnull)groupId userId:(NSString *_Nonnull)userId attributes:(NSDictionary <NSString*,NSString*>*_Nullable)attributes operatorId:(NSString *_Nonnull)operatorId;
319
320#pragma mark - Deprecated methods
333- (void)groupInvitationDidReceive:(NSString *)aGroupId
334 inviter:(NSString *)aInviter
335 message:(NSString *)aMessage
336 __deprecated_msg("Use -groupInvitationDidReceive:groupName:inviter:message: instead");
337
345- (void)joinGroupRequestDidDecline:(NSString *_Nonnull)aGroupId
346 reason:(NSString *_Nullable)aReason EM_DEPRECATED_IOS(3_1_0, 4_2_0, "Use -joinGroupRequestDidDecline:reason:applicant: instead");
347@end
Definition: AgoraChatGroup.h:31
Definition: AgoraChatGroupSharedFile.h:15
Definition: AgoraChatGroupManagerDelegate.h:28