AgoraChatSDK 1.2.0
IAgoraChatGroupManager.h
9#import <Foundation/Foundation.h>
10
11#import "AgoraChatCommonDefs.h"
12#import "AgoraChatGroupManagerDelegate.h"
13#import "AgoraChatGroup.h"
14#import "AgoraChatGroupOptions.h"
15#import "AgoraChatCursorResult.h"
16#import "AgoraChatGroupSharedFile.h"
17
22@protocol IAgoraChatGroupManager <NSObject>
23
24@required
25
26#pragma mark - Delegate
27
35- (void)addDelegate:(id<AgoraChatGroupManagerDelegate> _Nonnull)aDelegate
36 delegateQueue:(dispatch_queue_t _Nullable )aQueue;
37
44- (void)removeDelegate:(id _Nonnull)aDelegate;
45
46
47#pragma mark - Get Group
48
56- (NSArray<AgoraChatGroup *> *_Nullable )getJoinedGroups;
57
66- (NSArray *)getGroupsWithoutPushNotification:(AgoraChatError **)pError EM_DEPRECATED_IOS(3_3_2, 3_8_3, "Use -IAgoraChatPushManager::noPushGroups");
67
68
69#pragma mark - Get group from server
70
83- (NSArray<AgoraChatGroup *> *_Nullable )getJoinedGroupsFromServerWithPage:(NSInteger)aPageNum
84 pageSize:(NSInteger)aPageSize
85 error:(AgoraChatError **_Nullable )pError;
86
99- (AgoraChatCursorResult<AgoraChatGroup*> *_Nullable)getPublicGroupsFromServerWithCursor:(NSString *_Nullable)aCursor
100 pageSize:(NSInteger)aPageSize
101 error:(AgoraChatError **_Nullable)pError;
102
114- (void)getPublicGroupsFromServerWithCursor:(NSString *_Nullable)aCursor
115 pageSize:(NSInteger)aPageSize
116 completion:(void (^_Nullable)(AgoraChatCursorResult<AgoraChatGroup*> *_Nullable aResult, AgoraChatError *_Nullable aError))aCompletionBlock;
117
129- (AgoraChatGroup * _Nullable)searchPublicGroupWithId:(NSString *_Nonnull)aGroundId
130 error:(AgoraChatError **_Nullable)pError;
131
140- (void)searchPublicGroupWithId:(NSString *_Nonnull)aGroundId
141 completion:(void (^_Nullable)(AgoraChatGroup *aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
142
143#pragma mark - Create
144
160- (AgoraChatGroup * _Nullable)createGroupWithSubject:(NSString *_Nullable)aSubject
161 description:(NSString *_Nullable)aDescription
162 invitees:(NSArray<NSString *> * _Nullable)aInvitees
163 message:(NSString *_Nullable)aMessage
164 setting:(AgoraChatGroupOptions *_Nullable)aSetting
165 error:(AgoraChatError **_Nullable)pError;
166
181- (void)createGroupWithSubject:(NSString *_Nullable)aSubject
182 description:(NSString *_Nullable)aDescription
183 invitees:(NSArray<NSString *> * _Nullable)aInvitees
184 message:(NSString *_Nullable)aMessage
185 setting:(AgoraChatGroupOptions *_Nullable)aSetting
186 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
187
188#pragma mark - Fetch Info
189
201- (AgoraChatGroup * _Nullable)getGroupSpecificationFromServerWithId:(NSString *_Nonnull)aGroupId
202 error:(AgoraChatError **_Nullable)pError;
203
216- (AgoraChatGroup * _Nullable)getGroupSpecificationFromServerWithId:(NSString *_Nonnull)aGroupId
217 fetchMembers:(BOOL)fetchMembers
218 error:(AgoraChatError **_Nullable)pError;
219
230- (void)getGroupSpecificationFromServerWithId:(NSString *_Nonnull)aGroupId
231 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
232
242- (void)getGroupSpecificationFromServerWithId:(NSString *_Nonnull)aGroupId
243 fetchMembers:(BOOL)fetchMembers
244 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
245
260- (AgoraChatCursorResult<NSString*> *)getGroupMemberListFromServerWithId:(NSString *_Nonnull)aGroupId
261 cursor:(NSString *_Nullable)aCursor
262 pageSize:(NSInteger)aPageSize
263 error:(AgoraChatError **_Nullable)pError;
264
275- (void)getGroupMemberListFromServerWithId:(NSString *_Nonnull)aGroupId
276 cursor:(NSString *_Nullable)aCursor
277 pageSize:(NSInteger)aPageSize
278 completion:(void (^_Nullable)(AgoraChatCursorResult<NSString*> *aResult, AgoraChatError *_Nullable aError))aCompletionBlock;
279
293- (NSArray<NSString *> * _Nullable)getGroupBlacklistFromServerWithId:(NSString *_Nonnull)aGroupId
294 pageNumber:(NSInteger)aPageNum
295 pageSize:(NSInteger)aPageSize
296 error:(AgoraChatError **_Nullable)pError;
297
310- (void)getGroupBlacklistFromServerWithId:(NSString *_Nonnull)aGroupId
311 pageNumber:(NSInteger)aPageNum
312 pageSize:(NSInteger)aPageSize
313 completion:(void (^_Nullable)(NSArray<NSString *> * _Nullable aList, AgoraChatError *_Nullable aError))aCompletionBlock;
314
328- (NSArray<NSString *> * _Nullable)getGroupMuteListFromServerWithId:(NSString *_Nonnull)aGroupId
329 pageNumber:(NSInteger)aPageNum
330 pageSize:(NSInteger)aPageSize
331 error:(AgoraChatError **_Nullable)pError;
332
345- (void)getGroupMuteListFromServerWithId:(NSString *_Nonnull)aGroupId
346 pageNumber:(NSInteger)aPageNum
347 pageSize:(NSInteger)aPageSize
348 completion:(void (^_Nullable)(NSArray<NSString *> * _Nullable aList, AgoraChatError *_Nullable aError))aCompletionBlock;
349
362- (void)fetchGroupMuteListFromServerWithId:(NSString *_Nonnull)aGroupId
363 pageNumber:(NSInteger)aPageNum
364 pageSize:(NSInteger)aPageSize
365 completion:(void (^_Nullable)(NSDictionary<NSString *, NSNumber *> *_Nullable aDict, AgoraChatError *_Nullable aError))aCompletionBlock;
366
378- (NSArray<AgoraChatGroupSharedFile *> *_Nullable)getGroupFileListWithId:(NSString *_Nonnull)aGroupId
379 pageNumber:(NSInteger)aPageNum
380 pageSize:(NSInteger)aPageSize
381 error:(AgoraChatError **_Nullable)pError;
382
394- (void)getGroupFileListWithId:(NSString *_Nonnull)aGroupId
395 pageNumber:(NSInteger)aPageNum
396 pageSize:(NSInteger)aPageSize
397 completion:(void (^_Nullable)(NSArray<AgoraChatGroupSharedFile *> *_Nullable aList, AgoraChatError *_Nullable aError))aCompletionBlock;
398
399
410- (NSArray *)getGroupWhiteListFromServerWithId:(NSString *_Nonnull)aGroupId
411 error:(AgoraChatError **_Nullable)pError;
412
413
422- (void)getGroupWhiteListFromServerWithId:(NSString *_Nonnull)aGroupId
423 completion:(void (^_Nullable)(NSArray<NSString *> * _Nullable aList, AgoraChatError *_Nullable aError))aCompletionBlock;
424
435- (BOOL)isMemberInWhiteListFromServerWithGroupId:(NSString *_Nonnull)aGroupId
436 error:(AgoraChatError **_Nullable)pError;
437
446- (void)isMemberInWhiteListFromServerWithGroupId:(NSString *_Nonnull)aGroupId
447 completion:(void (^_Nullable)(BOOL inWhiteList, AgoraChatError *_Nullable aError))aCompletionBlock;
448
458- (NSString *_Nullable)getGroupAnnouncementWithId:(NSString *_Nonnull)aGroupId
459 error:(AgoraChatError **_Nullable)pError;
460
469- (void)getGroupAnnouncementWithId:(NSString *_Nonnull)aGroupId
470 completion:(void (^_Nullable)(NSString *aAnnouncement, AgoraChatError *_Nullable aError))aCompletionBlock;
471
472#pragma mark - Edit Group
473
487- (AgoraChatGroup * _Nullable)addOccupants:(NSArray<NSString *> * _Nonnull)aOccupants
488 toGroup:(NSString *_Nonnull)aGroupId
489 welcomeMessage:(NSString *_Nullable)aWelcomeMessage
490 error:(AgoraChatError **_Nullable)pError;
491
502- (void)addMembers:(NSArray<NSString *> * _Nonnull)aUsers
503 toGroup:(NSString *_Nonnull)aGroupId
504 message:(NSString *_Nullable)aMessage
505 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
506
521- (AgoraChatGroup * _Nullable)removeOccupants:(NSArray<NSString *> * _Nonnull)aOccupants
522 fromGroup:(NSString *_Nonnull)aGroupId
523 error:(AgoraChatError **_Nullable)pError;
524
536- (void)removeMembers:(NSArray<NSString *> * _Nonnull)aUsers
537 fromGroup:(NSString *_Nonnull)aGroupId
538 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
539
554- (AgoraChatGroup * _Nullable)blockOccupants:(NSArray<NSString *> * _Nonnull)aOccupants
555 fromGroup:(NSString *_Nonnull)aGroupId
556 error:(AgoraChatError **_Nullable)pError;
557
569- (void)blockMembers:(NSArray<NSString *> * _Nonnull)aMembers
570 fromGroup:(NSString *_Nonnull)aGroupId
571 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
572
573
588- (AgoraChatGroup * _Nullable)unblockOccupants:(NSArray<NSString *> * _Nonnull)aOccupants
589 forGroup:(NSString *_Nonnull)aGroupId
590 error:(AgoraChatError **_Nullable)pError;
591
603- (void)unblockMembers:(NSArray<NSString *> * _Nonnull)aMembers
604 fromGroup:(NSString *_Nonnull)aGroupId
605 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
606
621- (AgoraChatGroup * _Nullable)changeGroupSubject:(NSString *_Nullable)aSubject
622 forGroup:(NSString *_Nonnull)aGroupId
623 error:(AgoraChatError **_Nullable)pError;
624
636- (void)updateGroupSubject:(NSString *_Nullable)aSubject
637 forGroup:(NSString *_Nonnull)aGroupId
638 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
639
654- (AgoraChatGroup * _Nullable)changeDescription:(NSString *_Nullable)aDescription
655 forGroup:(NSString *_Nonnull)aGroupId
656 error:(AgoraChatError **_Nullable)pError;
657
669- (void)updateDescription:(NSString *_Nullable)aDescription
670 forGroup:(NSString *_Nonnull)aGroupId
671 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
672
683- (void)leaveGroup:(NSString *_Nonnull)aGroupId
684 error:(AgoraChatError **_Nullable)pError;
685
694- (void)leaveGroup:(NSString *_Nonnull)aGroupId
695 completion:(void (^_Nullable)(AgoraChatError *_Nullable aError))aCompletionBlock;
696
709- (AgoraChatError *)destroyGroup:(NSString *_Nonnull)aGroupId;
710
721- (void)destroyGroup:(NSString *_Nonnull)aGroupId
722 finishCompletion:(void (^_Nullable)(AgoraChatError *_Nullable aError))aCompletionBlock;
723
724
738- (AgoraChatGroup * _Nullable)blockGroup:(NSString *_Nonnull)aGroupId
739 error:(AgoraChatError **_Nullable)pError;
740
751- (void)blockGroup:(NSString *_Nonnull)aGroupId
752 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
753
765- (AgoraChatGroup * _Nullable)unblockGroup:(NSString *_Nonnull)aGroupId
766 error:(AgoraChatError **_Nullable)pError;
767
776- (void)unblockGroup:(NSString *_Nonnull)aGroupId
777 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
778
779
794- (AgoraChatGroup * _Nullable)updateGroupOwner:(NSString *_Nonnull)aGroupId
795 newOwner:(NSString *_Nonnull)aNewOwner
796 error:(AgoraChatError **_Nullable)pError;
797
809- (void)updateGroupOwner:(NSString *_Nonnull)aGroupId
810 newOwner:(NSString *_Nonnull)aNewOwner
811 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
812
826- (AgoraChatGroup * _Nullable)addAdmin:(NSString *_Nonnull)aAdmin
827 toGroup:(NSString *_Nonnull)aGroupId
828 error:(AgoraChatError **_Nullable)pError;
829
843- (void)addAdmin:(NSString *_Nonnull)aAdmin
844 toGroup:(NSString *_Nonnull)aGroupId
845 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
846
861- (AgoraChatGroup * _Nullable)removeAdmin:(NSString *_Nonnull)aAdmin
862 fromGroup:(NSString *_Nonnull)aGroupId
863 error:(AgoraChatError **_Nullable)pError;
864
878- (void)removeAdmin:(NSString *_Nonnull)aAdmin
879 fromGroup:(NSString *_Nonnull)aGroupId
880 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
881
882
898- (AgoraChatGroup * _Nullable)muteMembers:(NSArray<NSString *> * _Nonnull)aMuteMembers
899 muteMilliseconds:(NSInteger)aMuteMilliseconds
900 fromGroup:(NSString *_Nonnull)aGroupId
901 error:(AgoraChatError **_Nullable)pError;
902
917- (void)muteMembers:(NSArray<NSString *> * _Nonnull)aMuteMembers
918 muteMilliseconds:(NSInteger)aMuteMilliseconds
919 fromGroup:(NSString *_Nonnull)aGroupId
920 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
921
936- (AgoraChatGroup * _Nullable)unmuteMembers:(NSArray<NSString *> * _Nonnull)aMembers
937 fromGroup:(NSString *_Nonnull)aGroupId
938 error:(AgoraChatError **_Nullable)pError;
939
953- (void)unmuteMembers:(NSArray<NSString *> * _Nonnull)aMembers
954 fromGroup:(NSString *_Nonnull)aGroupId
955 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
956
970- (AgoraChatGroup * _Nullable)muteAllMembersFromGroup:(NSString *_Nonnull)aGroupId
971 error:(AgoraChatError **_Nullable)pError;
972
985- (void)muteAllMembersFromGroup:(NSString *_Nonnull)aGroupId
986 completion:(void(^)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
987
988
1002- (AgoraChatGroup * _Nullable)unmuteAllMembersFromGroup:(NSString *_Nonnull)aGroupId
1003 error:(AgoraChatError **_Nullable)pError;
1004
1005
1018- (void)unmuteAllMembersFromGroup:(NSString *_Nonnull)aGroupId
1019 completion:(void(^)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1020
1021
1036- (AgoraChatGroup * _Nullable)addWhiteListMembers:(NSArray<NSString *> * _Nonnull)aMembers
1037 fromGroup:(NSString *_Nonnull)aGroupId
1038 error:(AgoraChatError **_Nullable)pError;
1039
1051- (void)addWhiteListMembers:(NSArray<NSString *> * _Nonnull)aMembers
1052 fromGroup:(NSString *_Nonnull)aGroupId
1053 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1054
1055
1070- (AgoraChatGroup * _Nullable)removeWhiteListMembers:(NSArray<NSString *> * _Nonnull)aMembers
1071 fromGroup:(NSString *_Nonnull)aGroupId
1072 error:(AgoraChatError **_Nullable)pError;
1073
1087- (void)removeWhiteListMembers:(NSArray<NSString *> * _Nonnull)aMembers
1088 fromGroup:(NSString *_Nonnull)aGroupId
1089 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1090
1101- (void)uploadGroupSharedFileWithId:(NSString *_Nonnull)aGroupId
1102 filePath:(NSString* _Nonnull)aFilePath
1103 progress:(void (^_Nullable)(int progress))aProgressBlock
1104 completion:(void (^_Nullable)(AgoraChatGroupSharedFile *_Nullable aSharedFile, AgoraChatError *_Nullable aError))aCompletionBlock;
1105
1116- (void)downloadGroupSharedFileWithId:(NSString *_Nonnull)aGroupId
1117 filePath:(NSString *_Nonnull)aFilePath
1118 sharedFileId:(NSString *_Nonnull)aSharedFileId
1119 progress:(void (^_Nullable)(int progress))aProgressBlock
1120 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1121
1134- (AgoraChatGroup * _Nullable)removeGroupSharedFileWithId:(NSString *_Nonnull)aGroupId
1135 sharedFileId:(NSString *_Nonnull)aSharedFileId
1136 error:(AgoraChatError **_Nullable)pError;
1137
1146- (void)removeGroupSharedFileWithId:(NSString *_Nonnull)aGroupId
1147 sharedFileId:(NSString *_Nonnull)aSharedFileId
1148 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1149
1164- (AgoraChatGroup * _Nullable)updateGroupAnnouncementWithId:(NSString *_Nonnull)aGroupId
1165 announcement:(NSString *_Nullable)aAnnouncement
1166 error:(AgoraChatError **_Nullable)pError;
1167
1181- (void)updateGroupAnnouncementWithId:(NSString *_Nonnull)aGroupId
1182 announcement:(NSString *_Nullable)aAnnouncement
1183 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1184
1199- (AgoraChatGroup * _Nullable)updateGroupExtWithId:(NSString *_Nonnull)aGroupId
1200 ext:(NSString *_Nullable)aExt
1201 error:(AgoraChatError **_Nullable)pError;
1202
1214- (void)updateGroupExtWithId:(NSString *_Nonnull)aGroupId
1215 ext:(NSString *_Nullable)aExt
1216 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1217
1218#pragma mark - Edit Public Group
1219
1231- (AgoraChatGroup * _Nullable)joinPublicGroup:(NSString *_Nonnull)aGroupId
1232 error:(AgoraChatError **_Nullable)pError;
1233
1242- (void)joinPublicGroup:(NSString *_Nonnull)aGroupId
1243 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1244
1257- (AgoraChatGroup * _Nullable)applyJoinPublicGroup:(NSString *_Nonnull)aGroupId
1258 message:(NSString *_Nullable)aMessage
1259 error:(AgoraChatError **_Nullable)pError;
1260
1270- (void)requestToJoinPublicGroup:(NSString *_Nonnull)aGroupId
1271 message:(NSString *_Nullable)aMessage
1272 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1273
1274#pragma mark - Application
1275
1289- (AgoraChatError *)acceptJoinApplication:(NSString *_Nonnull)aGroupId
1290 applicant:(NSString *_Nonnull)aUsername;
1291
1305- (void)approveJoinGroupRequest:(NSString *_Nonnull)aGroupId
1306 sender:(NSString *_Nonnull)aUsername
1307 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1308
1323- (AgoraChatError *)declineJoinApplication:(NSString *_Nonnull)aGroupId
1324 applicant:(NSString *_Nonnull)aUsername
1325 reason:(NSString *_Nullable)aReason;
1326
1341- (void)declineJoinGroupRequest:(NSString *_Nonnull)aGroupId
1342 sender:(NSString *_Nonnull)aUsername
1343 reason:(NSString *_Nullable)aReason
1344 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1345
1358- (AgoraChatGroup * _Nullable)acceptInvitationFromGroup:(NSString *_Nonnull)aGroupId
1359 inviter:(NSString *_Nonnull)aUsername
1360 error:(AgoraChatError **_Nullable)pError;
1361
1373- (void)acceptInvitationFromGroup:(NSString *_Nonnull)aGroupId
1374 inviter:(NSString *_Nonnull)aUsername
1375 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1376
1389- (AgoraChatError *)declineInvitationFromGroup:(NSString *_Nonnull)aGroupId
1390 inviter:(NSString *_Nonnull)aUsername
1391 reason:(NSString *_Nullable)aReason;
1392
1405- (void)declineGroupInvitation:(NSString *_Nonnull)aGroupId
1406 inviter:(NSString *_Nonnull)aInviter
1407 reason:(NSString *_Nullable)aReason
1408 completion:(void (^_Nullable)(AgoraChatError *_Nullable aError))aCompletionBlock;
1409
1432- (void)getJoinedGroupsFromServerWithPage:(NSInteger)aPageNum
1433 pageSize:(NSInteger)aPageSize
1434 needMemberCount:(BOOL)aNeedMemberCount
1435 needRole:(BOOL)aNeedRole
1436 completion:(void (^_Nullable)(NSArray<AgoraChatGroup *> *_Nullable aList, AgoraChatError *_Nullable aError))aCompletionBlock;
1437
1438#pragma mark - Apns
1439
1453- (AgoraChatError *)ignoreGroupPush:(NSString *)aGroupId
1454 ignore:(BOOL)aIsIgnore EM_DEPRECATED_IOS(3_3_2, 3_8_3, "Use -IAgoraChatPushManager::updatePushServiceForGroups:disablePush:");
1455
1456
1468- (void)updatePushServiceForGroup:(NSString *)aGroupId
1469 isPushEnabled:(BOOL)aIsEnable
1470 completion:(void (^)(AgoraChatGroup *aGroup, AgoraChatError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_3_2, 3_8_3, "Use -IAgoraChatPushManager::updatePushServiceForGroups:disablePush:completion:");
1471
1472
1486- (AgoraChatError *)ignoreGroupsPush:(NSArray *)aGroupIDs
1487 ignore:(BOOL)aIsIgnore EM_DEPRECATED_IOS(3_3_2, 3_8_3, "Use -IAgoraChatPushManager::updatePushServiceForGroups:disablePush:");
1488
1500- (void)updatePushServiceForGroups:(NSArray *)aGroupIDs
1501 isPushEnabled:(BOOL)aIsEnable
1502 completion:(void (^)(NSArray *groups, AgoraChatError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_3_2, 3_8_3, "Use -IAgoraChatPushManager::updatePushServiceForGroups:disablePush:completion:");
1503
1504#pragma mark - Group member attributes
1514- (void)setMemberAttribute:(NSString *_Nonnull)groupId userId:(NSString *_Nonnull)userId attributes:(NSDictionary<NSString*,NSString*> *_Nonnull)attributes completion:(void (^_Nullable)(AgoraChatError *_Nullable error))completionBlock;
1515
1527- (void)fetchMemberAttribute:(NSString *_Nonnull)groupId userId:(NSString *_Nonnull)userId completion:(void (^ _Nullable)(NSDictionary<NSString *,NSString *> * _Nullable, AgoraChatError * _Nullable))completionBlock;
1540- (void)fetchMembersAttributes:(NSString *_Nonnull)groupId userIds:(NSArray<__kindof NSString *> *_Nonnull)userIds keys:(NSArray<__kindof NSString *> *_Nonnull)keys completion:(void (^_Nullable)(NSDictionary<NSString*,NSDictionary<NSString*,NSString*>*> *_Nullable attributes, AgoraChatError *_Nullable error))completionBlock;
1541
1542#pragma mark - EM_DEPRECATED_IOS 3.8.8
1543
1558- (void)getJoinedGroupsFromServerWithPage:(NSInteger)aPageNum
1559 pageSize:(NSInteger)aPageSize
1560 completion:(void (^_Nullable)(NSArray<AgoraChatGroup *> *aList, AgoraChatError *_Nullable aError))aCompletionBlock
1561 __deprecated_msg("Use -getJoinedGroupsFromServerWithPage:pageSize:needMemberCount:needRole:error:completion: instead");
1562
1563@end
Definition: AgoraChatCursorResult.h:16
Definition: AgoraChatError.h:18
Definition: AgoraChatGroup.h:31
Definition: AgoraChatGroupOptions.h:30
Definition: AgoraChatGroupSharedFile.h:15
Definition: AgoraChatGroupManagerDelegate.h:28
Definition: IAgoraChatGroupManager.h:22
NSArray< AgoraChatGroup * > *_Nullable getJoinedGroups()
Definition: IAgoraChatPushManager.h:25