AgoraChatSDK 1.3.1
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
64
73- (NSArray *)getGroupsWithoutPushNotification:(AgoraChatError **)pError EM_DEPRECATED_IOS(3_3_2, 3_8_3, "Use -IAgoraChatPushManager::noPushGroups");
74
75
76#pragma mark - Get group from server
77
90- (NSArray<AgoraChatGroup *> *_Nullable )getJoinedGroupsFromServerWithPage:(NSInteger)aPageNum
91 pageSize:(NSInteger)aPageSize
92 error:(AgoraChatError **_Nullable )pError __deprecated_msg("Use -getJoinedGroupsFromServerWithPage:pageSize:needMemberCount:needRole:error:completion: instead");;
93
106- (AgoraChatCursorResult<AgoraChatGroup*> *_Nullable)getPublicGroupsFromServerWithCursor:(NSString *_Nullable)aCursor
107 pageSize:(NSInteger)aPageSize
108 error:(AgoraChatError **_Nullable)pError;
109
121- (void)getPublicGroupsFromServerWithCursor:(NSString *_Nullable)aCursor
122 pageSize:(NSInteger)aPageSize
123 completion:(void (^_Nullable)(AgoraChatCursorResult<AgoraChatGroup*> *_Nullable aResult, AgoraChatError *_Nullable aError))aCompletionBlock;
124
136- (AgoraChatGroup * _Nullable)searchPublicGroupWithId:(NSString *_Nonnull)aGroundId
137 error:(AgoraChatError **_Nullable)pError;
138
147- (void)searchPublicGroupWithId:(NSString *_Nonnull)aGroundId
148 completion:(void (^_Nullable)(AgoraChatGroup *aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
149
159- (void)getJoinedGroupsCountFromServerWithCompletion:(void (^_Nullable)(NSInteger groupCount, AgoraChatError *_Nullable aError))aCompletionBlock;
160
161#pragma mark - Create
162
178- (AgoraChatGroup * _Nullable)createGroupWithSubject:(NSString *_Nullable)aSubject
179 description:(NSString *_Nullable)aDescription
180 invitees:(NSArray<NSString *> * _Nullable)aInvitees
181 message:(NSString *_Nullable)aMessage
182 setting:(AgoraChatGroupOptions *_Nullable)aSetting
183 error:(AgoraChatError **_Nullable)pError;
184
199- (void)createGroupWithSubject:(NSString *_Nullable)aSubject
200 description:(NSString *_Nullable)aDescription
201 invitees:(NSArray<NSString *> * _Nullable)aInvitees
202 message:(NSString *_Nullable)aMessage
203 setting:(AgoraChatGroupOptions *_Nullable)aSetting
204 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
205
206#pragma mark - Fetch Info
207
219- (AgoraChatGroup * _Nullable)getGroupSpecificationFromServerWithId:(NSString *_Nonnull)aGroupId
220 error:(AgoraChatError **_Nullable)pError;
221
234- (AgoraChatGroup * _Nullable)getGroupSpecificationFromServerWithId:(NSString *_Nonnull)aGroupId
235 fetchMembers:(BOOL)fetchMembers
236 error:(AgoraChatError **_Nullable)pError;
237
248- (void)getGroupSpecificationFromServerWithId:(NSString *_Nonnull)aGroupId
249 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
250
260- (void)getGroupSpecificationFromServerWithId:(NSString *_Nonnull)aGroupId
261 fetchMembers:(BOOL)fetchMembers
262 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
263
278- (AgoraChatCursorResult<NSString*> *)getGroupMemberListFromServerWithId:(NSString *_Nonnull)aGroupId
279 cursor:(NSString *_Nullable)aCursor
280 pageSize:(NSInteger)aPageSize
281 error:(AgoraChatError **_Nullable)pError;
282
293- (void)getGroupMemberListFromServerWithId:(NSString *_Nonnull)aGroupId
294 cursor:(NSString *_Nullable)aCursor
295 pageSize:(NSInteger)aPageSize
296 completion:(void (^_Nullable)(AgoraChatCursorResult<NSString*> *aResult, AgoraChatError *_Nullable aError))aCompletionBlock;
297
311- (NSArray<NSString *> * _Nullable)getGroupBlacklistFromServerWithId:(NSString *_Nonnull)aGroupId
312 pageNumber:(NSInteger)aPageNum
313 pageSize:(NSInteger)aPageSize
314 error:(AgoraChatError **_Nullable)pError;
315
328- (void)getGroupBlacklistFromServerWithId:(NSString *_Nonnull)aGroupId
329 pageNumber:(NSInteger)aPageNum
330 pageSize:(NSInteger)aPageSize
331 completion:(void (^_Nullable)(NSArray<NSString *> * _Nullable aList, AgoraChatError *_Nullable aError))aCompletionBlock;
332
346- (NSArray<NSString *> * _Nullable)getGroupMuteListFromServerWithId:(NSString *_Nonnull)aGroupId
347 pageNumber:(NSInteger)aPageNum
348 pageSize:(NSInteger)aPageSize
349 error:(AgoraChatError **_Nullable)pError;
350
363- (void)getGroupMuteListFromServerWithId:(NSString *_Nonnull)aGroupId
364 pageNumber:(NSInteger)aPageNum
365 pageSize:(NSInteger)aPageSize
366 completion:(void (^_Nullable)(NSArray<NSString *> * _Nullable aList, AgoraChatError *_Nullable aError))aCompletionBlock;
367
380- (void)fetchGroupMuteListFromServerWithId:(NSString *_Nonnull)aGroupId
381 pageNumber:(NSInteger)aPageNum
382 pageSize:(NSInteger)aPageSize
383 completion:(void (^_Nullable)(NSDictionary<NSString *, NSNumber *> *_Nullable aDict, AgoraChatError *_Nullable aError))aCompletionBlock;
384
396- (NSArray<AgoraChatGroupSharedFile *> *_Nullable)getGroupFileListWithId:(NSString *_Nonnull)aGroupId
397 pageNumber:(NSInteger)aPageNum
398 pageSize:(NSInteger)aPageSize
399 error:(AgoraChatError **_Nullable)pError;
400
412- (void)getGroupFileListWithId:(NSString *_Nonnull)aGroupId
413 pageNumber:(NSInteger)aPageNum
414 pageSize:(NSInteger)aPageSize
415 completion:(void (^_Nullable)(NSArray<AgoraChatGroupSharedFile *> *_Nullable aList, AgoraChatError *_Nullable aError))aCompletionBlock;
416
417
428- (NSArray *)getGroupWhiteListFromServerWithId:(NSString *_Nonnull)aGroupId
429 error:(AgoraChatError **_Nullable)pError;
430
431
440- (void)getGroupWhiteListFromServerWithId:(NSString *_Nonnull)aGroupId
441 completion:(void (^_Nullable)(NSArray<NSString *> * _Nullable aList, AgoraChatError *_Nullable aError))aCompletionBlock;
442
453- (BOOL)isMemberInWhiteListFromServerWithGroupId:(NSString *_Nonnull)aGroupId
454 error:(AgoraChatError **_Nullable)pError;
455
464- (void)isMemberInWhiteListFromServerWithGroupId:(NSString *_Nonnull)aGroupId
465 completion:(void (^_Nullable)(BOOL inWhiteList, AgoraChatError *_Nullable aError))aCompletionBlock;
466
476- (NSString *_Nullable)getGroupAnnouncementWithId:(NSString *_Nonnull)aGroupId
477 error:(AgoraChatError **_Nullable)pError;
478
487- (void)isMemberInMuteListFromServerWithGroupId:(NSString * _Nonnull)aGroupId
488 completion:(void (^ _Nonnull)(BOOL inMuteList, AgoraChatError * _Nullable aError))aCompletionBlock;
489
498- (void)getGroupAnnouncementWithId:(NSString *_Nonnull)aGroupId
499 completion:(void (^_Nullable)(NSString *aAnnouncement, AgoraChatError *_Nullable aError))aCompletionBlock;
500
501#pragma mark - Edit Group
502
516- (AgoraChatGroup * _Nullable)addOccupants:(NSArray<NSString *> * _Nonnull)aOccupants
517 toGroup:(NSString *_Nonnull)aGroupId
518 welcomeMessage:(NSString *_Nullable)aWelcomeMessage
519 error:(AgoraChatError **_Nullable)pError;
520
531- (void)addMembers:(NSArray<NSString *> * _Nonnull)aUsers
532 toGroup:(NSString *_Nonnull)aGroupId
533 message:(NSString *_Nullable)aMessage
534 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
535
550- (AgoraChatGroup * _Nullable)removeOccupants:(NSArray<NSString *> * _Nonnull)aOccupants
551 fromGroup:(NSString *_Nonnull)aGroupId
552 error:(AgoraChatError **_Nullable)pError;
553
565- (void)removeMembers:(NSArray<NSString *> * _Nonnull)aUsers
566 fromGroup:(NSString *_Nonnull)aGroupId
567 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
568
583- (AgoraChatGroup * _Nullable)blockOccupants:(NSArray<NSString *> * _Nonnull)aOccupants
584 fromGroup:(NSString *_Nonnull)aGroupId
585 error:(AgoraChatError **_Nullable)pError;
586
598- (void)blockMembers:(NSArray<NSString *> * _Nonnull)aMembers
599 fromGroup:(NSString *_Nonnull)aGroupId
600 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
601
602
617- (AgoraChatGroup * _Nullable)unblockOccupants:(NSArray<NSString *> * _Nonnull)aOccupants
618 forGroup:(NSString *_Nonnull)aGroupId
619 error:(AgoraChatError **_Nullable)pError;
620
632- (void)unblockMembers:(NSArray<NSString *> * _Nonnull)aMembers
633 fromGroup:(NSString *_Nonnull)aGroupId
634 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
635
650- (AgoraChatGroup * _Nullable)changeGroupSubject:(NSString *_Nullable)aSubject
651 forGroup:(NSString *_Nonnull)aGroupId
652 error:(AgoraChatError **_Nullable)pError;
653
665- (void)updateGroupSubject:(NSString *_Nullable)aSubject
666 forGroup:(NSString *_Nonnull)aGroupId
667 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
668
683- (AgoraChatGroup * _Nullable)changeDescription:(NSString *_Nullable)aDescription
684 forGroup:(NSString *_Nonnull)aGroupId
685 error:(AgoraChatError **_Nullable)pError;
686
698- (void)updateDescription:(NSString *_Nullable)aDescription
699 forGroup:(NSString *_Nonnull)aGroupId
700 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
701
712- (void)leaveGroup:(NSString *_Nonnull)aGroupId
713 error:(AgoraChatError **_Nullable)pError;
714
723- (void)leaveGroup:(NSString *_Nonnull)aGroupId
724 completion:(void (^_Nullable)(AgoraChatError *_Nullable aError))aCompletionBlock;
725
738- (AgoraChatError *)destroyGroup:(NSString *_Nonnull)aGroupId;
739
750- (void)destroyGroup:(NSString *_Nonnull)aGroupId
751 finishCompletion:(void (^_Nullable)(AgoraChatError *_Nullable aError))aCompletionBlock;
752
753
767- (AgoraChatGroup * _Nullable)blockGroup:(NSString *_Nonnull)aGroupId
768 error:(AgoraChatError **_Nullable)pError;
769
780- (void)blockGroup:(NSString *_Nonnull)aGroupId
781 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
782
794- (AgoraChatGroup * _Nullable)unblockGroup:(NSString *_Nonnull)aGroupId
795 error:(AgoraChatError **_Nullable)pError;
796
805- (void)unblockGroup:(NSString *_Nonnull)aGroupId
806 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
807
808
823- (AgoraChatGroup * _Nullable)updateGroupOwner:(NSString *_Nonnull)aGroupId
824 newOwner:(NSString *_Nonnull)aNewOwner
825 error:(AgoraChatError **_Nullable)pError;
826
838- (void)updateGroupOwner:(NSString *_Nonnull)aGroupId
839 newOwner:(NSString *_Nonnull)aNewOwner
840 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
841
855- (AgoraChatGroup * _Nullable)addAdmin:(NSString *_Nonnull)aAdmin
856 toGroup:(NSString *_Nonnull)aGroupId
857 error:(AgoraChatError **_Nullable)pError;
858
872- (void)addAdmin:(NSString *_Nonnull)aAdmin
873 toGroup:(NSString *_Nonnull)aGroupId
874 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
875
890- (AgoraChatGroup * _Nullable)removeAdmin:(NSString *_Nonnull)aAdmin
891 fromGroup:(NSString *_Nonnull)aGroupId
892 error:(AgoraChatError **_Nullable)pError;
893
907- (void)removeAdmin:(NSString *_Nonnull)aAdmin
908 fromGroup:(NSString *_Nonnull)aGroupId
909 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
910
911
927- (AgoraChatGroup * _Nullable)muteMembers:(NSArray<NSString *> * _Nonnull)aMuteMembers
928 muteMilliseconds:(NSInteger)aMuteMilliseconds
929 fromGroup:(NSString *_Nonnull)aGroupId
930 error:(AgoraChatError **_Nullable)pError;
931
946- (void)muteMembers:(NSArray<NSString *> * _Nonnull)aMuteMembers
947 muteMilliseconds:(NSInteger)aMuteMilliseconds
948 fromGroup:(NSString *_Nonnull)aGroupId
949 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
950
965- (AgoraChatGroup * _Nullable)unmuteMembers:(NSArray<NSString *> * _Nonnull)aMembers
966 fromGroup:(NSString *_Nonnull)aGroupId
967 error:(AgoraChatError **_Nullable)pError;
968
982- (void)unmuteMembers:(NSArray<NSString *> * _Nonnull)aMembers
983 fromGroup:(NSString *_Nonnull)aGroupId
984 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
985
999- (AgoraChatGroup * _Nullable)muteAllMembersFromGroup:(NSString *_Nonnull)aGroupId
1000 error:(AgoraChatError **_Nullable)pError;
1001
1014- (void)muteAllMembersFromGroup:(NSString *_Nonnull)aGroupId
1015 completion:(void(^)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1016
1017
1031- (AgoraChatGroup * _Nullable)unmuteAllMembersFromGroup:(NSString *_Nonnull)aGroupId
1032 error:(AgoraChatError **_Nullable)pError;
1033
1034
1047- (void)unmuteAllMembersFromGroup:(NSString *_Nonnull)aGroupId
1048 completion:(void(^)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1049
1050
1065- (AgoraChatGroup * _Nullable)addWhiteListMembers:(NSArray<NSString *> * _Nonnull)aMembers
1066 fromGroup:(NSString *_Nonnull)aGroupId
1067 error:(AgoraChatError **_Nullable)pError;
1068
1080- (void)addWhiteListMembers:(NSArray<NSString *> * _Nonnull)aMembers
1081 fromGroup:(NSString *_Nonnull)aGroupId
1082 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1083
1084
1099- (AgoraChatGroup * _Nullable)removeWhiteListMembers:(NSArray<NSString *> * _Nonnull)aMembers
1100 fromGroup:(NSString *_Nonnull)aGroupId
1101 error:(AgoraChatError **_Nullable)pError;
1102
1116- (void)removeWhiteListMembers:(NSArray<NSString *> * _Nonnull)aMembers
1117 fromGroup:(NSString *_Nonnull)aGroupId
1118 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1119
1130- (void)uploadGroupSharedFileWithId:(NSString *_Nonnull)aGroupId
1131 filePath:(NSString* _Nonnull)aFilePath
1132 progress:(void (^_Nullable)(int progress))aProgressBlock
1133 completion:(void (^_Nullable)(AgoraChatGroupSharedFile *_Nullable aSharedFile, AgoraChatError *_Nullable aError))aCompletionBlock;
1134
1145- (void)downloadGroupSharedFileWithId:(NSString *_Nonnull)aGroupId
1146 filePath:(NSString *_Nonnull)aFilePath
1147 sharedFileId:(NSString *_Nonnull)aSharedFileId
1148 progress:(void (^_Nullable)(int progress))aProgressBlock
1149 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1150
1163- (AgoraChatGroup * _Nullable)removeGroupSharedFileWithId:(NSString *_Nonnull)aGroupId
1164 sharedFileId:(NSString *_Nonnull)aSharedFileId
1165 error:(AgoraChatError **_Nullable)pError;
1166
1175- (void)removeGroupSharedFileWithId:(NSString *_Nonnull)aGroupId
1176 sharedFileId:(NSString *_Nonnull)aSharedFileId
1177 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1178
1193- (AgoraChatGroup * _Nullable)updateGroupAnnouncementWithId:(NSString *_Nonnull)aGroupId
1194 announcement:(NSString *_Nullable)aAnnouncement
1195 error:(AgoraChatError **_Nullable)pError;
1196
1210- (void)updateGroupAnnouncementWithId:(NSString *_Nonnull)aGroupId
1211 announcement:(NSString *_Nullable)aAnnouncement
1212 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1213
1228- (AgoraChatGroup * _Nullable)updateGroupExtWithId:(NSString *_Nonnull)aGroupId
1229 ext:(NSString *_Nullable)aExt
1230 error:(AgoraChatError **_Nullable)pError;
1231
1243- (void)updateGroupExtWithId:(NSString *_Nonnull)aGroupId
1244 ext:(NSString *_Nullable)aExt
1245 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1246
1247#pragma mark - Edit Public Group
1248
1260- (AgoraChatGroup * _Nullable)joinPublicGroup:(NSString *_Nonnull)aGroupId
1261 error:(AgoraChatError **_Nullable)pError;
1262
1271- (void)joinPublicGroup:(NSString *_Nonnull)aGroupId
1272 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1273
1286- (AgoraChatGroup * _Nullable)applyJoinPublicGroup:(NSString *_Nonnull)aGroupId
1287 message:(NSString *_Nullable)aMessage
1288 error:(AgoraChatError **_Nullable)pError;
1289
1299- (void)requestToJoinPublicGroup:(NSString *_Nonnull)aGroupId
1300 message:(NSString *_Nullable)aMessage
1301 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1302
1303#pragma mark - Application
1304
1318- (AgoraChatError *)acceptJoinApplication:(NSString *_Nonnull)aGroupId
1319 applicant:(NSString *_Nonnull)aUsername;
1320
1334- (void)approveJoinGroupRequest:(NSString *_Nonnull)aGroupId
1335 sender:(NSString *_Nonnull)aUsername
1336 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1337
1352- (AgoraChatError *)declineJoinApplication:(NSString *_Nonnull)aGroupId
1353 applicant:(NSString *_Nonnull)aUsername
1354 reason:(NSString *_Nullable)aReason;
1355
1370- (void)declineJoinGroupRequest:(NSString *_Nonnull)aGroupId
1371 sender:(NSString *_Nonnull)aUsername
1372 reason:(NSString *_Nullable)aReason
1373 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1374
1387- (AgoraChatGroup * _Nullable)acceptInvitationFromGroup:(NSString *_Nonnull)aGroupId
1388 inviter:(NSString *_Nonnull)aUsername
1389 error:(AgoraChatError **_Nullable)pError;
1390
1402- (void)acceptInvitationFromGroup:(NSString *_Nonnull)aGroupId
1403 inviter:(NSString *_Nonnull)aUsername
1404 completion:(void (^_Nullable)(AgoraChatGroup *_Nullable aGroup, AgoraChatError *_Nullable aError))aCompletionBlock;
1405
1418- (AgoraChatError *)declineInvitationFromGroup:(NSString *_Nonnull)aGroupId
1419 inviter:(NSString *_Nonnull)aUsername
1420 reason:(NSString *_Nullable)aReason;
1421
1434- (void)declineGroupInvitation:(NSString *_Nonnull)aGroupId
1435 inviter:(NSString *_Nonnull)aInviter
1436 reason:(NSString *_Nullable)aReason
1437 completion:(void (^_Nullable)(AgoraChatError *_Nullable aError))aCompletionBlock;
1438
1461- (void)getJoinedGroupsFromServerWithPage:(NSInteger)aPageNum
1462 pageSize:(NSInteger)aPageSize
1463 needMemberCount:(BOOL)aNeedMemberCount
1464 needRole:(BOOL)aNeedRole
1465 completion:(void (^_Nullable)(NSArray<AgoraChatGroup *> *_Nullable aList, AgoraChatError *_Nullable aError))aCompletionBlock;
1466
1467#pragma mark - Apns
1468
1482- (AgoraChatError *)ignoreGroupPush:(NSString *)aGroupId
1483 ignore:(BOOL)aIsIgnore EM_DEPRECATED_IOS(3_3_2, 3_8_3, "Use -IAgoraChatPushManager::updatePushServiceForGroups:disablePush:");
1484
1485
1497- (void)updatePushServiceForGroup:(NSString *)aGroupId
1498 isPushEnabled:(BOOL)aIsEnable
1499 completion:(void (^)(AgoraChatGroup *aGroup, AgoraChatError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_3_2, 3_8_3, "Use -IAgoraChatPushManager::updatePushServiceForGroups:disablePush:completion:");
1500
1501
1515- (AgoraChatError *)ignoreGroupsPush:(NSArray *)aGroupIDs
1516 ignore:(BOOL)aIsIgnore EM_DEPRECATED_IOS(3_3_2, 3_8_3, "Use -IAgoraChatPushManager::updatePushServiceForGroups:disablePush:");
1517
1529- (void)updatePushServiceForGroups:(NSArray *)aGroupIDs
1530 isPushEnabled:(BOOL)aIsEnable
1531 completion:(void (^)(NSArray *groups, AgoraChatError *aError))aCompletionBlock EM_DEPRECATED_IOS(3_3_2, 3_8_3, "Use -IAgoraChatPushManager::updatePushServiceForGroups:disablePush:completion:");
1532
1533#pragma mark - Group member attributes
1543- (void)setMemberAttribute:(NSString *_Nonnull)groupId userId:(NSString *_Nonnull)userId attributes:(NSDictionary<NSString*,NSString*> *_Nonnull)attributes completion:(void (^_Nullable)(AgoraChatError *_Nullable error))completionBlock;
1544
1556- (void)fetchMemberAttribute:(NSString *_Nonnull)groupId userId:(NSString *_Nonnull)userId completion:(void (^ _Nullable)(NSDictionary<NSString *,NSString *> * _Nullable, AgoraChatError * _Nullable))completionBlock;
1569- (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;
1570
1571#pragma mark - EM_DEPRECATED_IOS 3.8.8
1572
1587- (void)getJoinedGroupsFromServerWithPage:(NSInteger)aPageNum
1588 pageSize:(NSInteger)aPageSize
1589 completion:(void (^_Nullable)(NSArray<AgoraChatGroup *> *aList, AgoraChatError *_Nullable aError))aCompletionBlock
1590 __deprecated_msg("Use -getJoinedGroupsFromServerWithPage:pageSize:needMemberCount:needRole:error:completion: instead");
1591
1592@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