agora_chat_SDK  3.8.2
Instance Methods | List of all members
<IAgoraGroupManager> Protocol Reference

#import <IAgoraGroupManager.h>

Inheritance diagram for <IAgoraGroupManager>:

Instance Methods

(void) - addDelegate:delegateQueue:
 
(void) - removeDelegate:
 
(NSArray *) - getJoinedGroups
 
(NSArray *) - getGroupsWithoutPushNotification:
 
(NSArray *) - getJoinedGroupsFromServerWithPage:pageSize:error:
 
(void) - getJoinedGroupsFromServerWithPage:pageSize:completion:
 
(AgoraCursorResult *) - getPublicGroupsFromServerWithCursor:pageSize:error:
 
(void) - getPublicGroupsFromServerWithCursor:pageSize:completion:
 
(AgoraGroup *) - searchPublicGroupWithId:error:
 
(void) - searchPublicGroupWithId:completion:
 
(AgoraGroup *) - createGroupWithSubject:description:invitees:message:setting:error:
 
(void) - createGroupWithSubject:description:invitees:message:setting:completion:
 
(AgoraGroup *) - getGroupSpecificationFromServerWithId:error:
 
(AgoraGroup *) - getGroupSpecificationFromServerWithId:fetchMembers:error:
 
(void) - getGroupSpecificationFromServerWithId:completion:
 
(void) - getGroupSpecificationFromServerWithId:fetchMembers:completion:
 
(AgoraCursorResult *) - getGroupMemberListFromServerWithId:cursor:pageSize:error:
 
(void) - getGroupMemberListFromServerWithId:cursor:pageSize:completion:
 
(NSArray *) - getGroupBlacklistFromServerWithId:pageNumber:pageSize:error:
 
(void) - getGroupBlacklistFromServerWithId:pageNumber:pageSize:completion:
 
(NSArray *) - getGroupMuteListFromServerWithId:pageNumber:pageSize:error:
 
(void) - getGroupMuteListFromServerWithId:pageNumber:pageSize:completion:
 
(NSArray *) - getGroupFileListWithId:pageNumber:pageSize:error:
 
(void) - getGroupFileListWithId:pageNumber:pageSize:completion:
 
(NSArray *) - getGroupWhiteListFromServerWithId:error:
 
(void) - getGroupWhiteListFromServerWithId:completion:
 
(BOOL) - isMemberInWhiteListFromServerWithGroupId:error:
 
(void) - isMemberInWhiteListFromServerWithGroupId:completion:
 
(NSString *) - getGroupAnnouncementWithId:error:
 
(void) - getGroupAnnouncementWithId:completion:
 
(AgoraGroup *) - addOccupants:toGroup:welcomeMessage:error:
 
(void) - addMembers:toGroup:message:completion:
 
(AgoraGroup *) - removeOccupants:fromGroup:error:
 
(void) - removeMembers:fromGroup:completion:
 
(AgoraGroup *) - blockOccupants:fromGroup:error:
 
(void) - blockMembers:fromGroup:completion:
 
(AgoraGroup *) - unblockOccupants:forGroup:error:
 
(void) - unblockMembers:fromGroup:completion:
 
(AgoraGroup *) - changeGroupSubject:forGroup:error:
 
(void) - updateGroupSubject:forGroup:completion:
 
(AgoraGroup *) - changeDescription:forGroup:error:
 
(void) - updateDescription:forGroup:completion:
 
(void) - leaveGroup:error:
 
(void) - leaveGroup:completion:
 
(AgoraError *) - destroyGroup:
 
(void) - destroyGroup:finishCompletion:
 
(AgoraGroup *) - blockGroup:error:
 
(void) - blockGroup:completion:
 
(AgoraGroup *) - unblockGroup:error:
 
(void) - unblockGroup:completion:
 
(AgoraGroup *) - updateGroupOwner:newOwner:error:
 
(void) - updateGroupOwner:newOwner:completion:
 
(AgoraGroup *) - addAdmin:toGroup:error:
 
(void) - addAdmin:toGroup:completion:
 
(AgoraGroup *) - removeAdmin:fromGroup:error:
 
(void) - removeAdmin:fromGroup:completion:
 
(AgoraGroup *) - muteMembers:muteMilliseconds:fromGroup:error:
 
(void) - muteMembers:muteMilliseconds:fromGroup:completion:
 
(AgoraGroup *) - unmuteMembers:fromGroup:error:
 
(void) - unmuteMembers:fromGroup:completion:
 
(AgoraGroup *) - muteAllMembersFromGroup:error:
 
(void) - muteAllMembersFromGroup:completion:
 
(AgoraGroup *) - unmuteAllMembersFromGroup:error:
 
(void) - unmuteAllMembersFromGroup:completion:
 
(AgoraGroup *) - addWhiteListMembers:fromGroup:error:
 
(void) - addWhiteListMembers:fromGroup:completion:
 
(AgoraGroup *) - removeWhiteListMembers:fromGroup:error:
 
(void) - removeWhiteListMembers:fromGroup:completion:
 
(void) - uploadGroupSharedFileWithId:filePath:progress:completion:
 
(void) - downloadGroupSharedFileWithId:filePath:sharedFileId:progress:completion:
 
(AgoraGroup *) - removeGroupSharedFileWithId:sharedFileId:error:
 
(void) - removeGroupSharedFileWithId:sharedFileId:completion:
 
(AgoraGroup *) - updateGroupAnnouncementWithId:announcement:error:
 
(void) - updateGroupAnnouncementWithId:announcement:completion:
 
(AgoraGroup *) - updateGroupExtWithId:ext:error:
 
(void) - updateGroupExtWithId:ext:completion:
 
(AgoraGroup *) - joinPublicGroup:error:
 
(void) - joinPublicGroup:completion:
 
(AgoraGroup *) - applyJoinPublicGroup:message:error:
 
(void) - requestToJoinPublicGroup:message:completion:
 
(AgoraError *) - acceptJoinApplication:applicant:
 
(void) - approveJoinGroupRequest:sender:completion:
 
(AgoraError *) - declineJoinApplication:applicant:reason:
 
(void) - declineJoinGroupRequest:sender:reason:completion:
 
(AgoraGroup *) - acceptInvitationFromGroup:inviter:error:
 
(void) - acceptInvitationFromGroup:inviter:completion:
 
(AgoraError *) - declineInvitationFromGroup:inviter:reason:
 
(void) - declineGroupInvitation:inviter:reason:completion:
 
(AgoraError *) - ignoreGroupPush:ignore:
 
(void) - updatePushServiceForGroup:isPushEnabled:completion:
 
(AgoraError *) - ignoreGroupsPush:ignore:
 
(void) - updatePushServiceForGroups:isPushEnabled:completion:
 
(NSArray *) - getMyGroupsFromServerWithError:
 
(void) - getJoinedGroupsFromServerWithCompletion:
 
(AgoraGroup *) - fetchGroupInfo:includeMembersList:error:
 
(void) - getGroupSpecificationFromServerByID:includeMembersList:completion:
 
(NSArray *) - fetchGroupBansList:error:
 
(void) - getGroupBlackListFromServerByID:completion:
 
(AgoraGroup *) - destroyGroup:error:
 
(void) - destroyGroup:completion:
 
(void) - addDelegate:
 
("Use -getJoinedGroups") - __deprecated_msg
 
("Use -getJoinedGroups") - __deprecated_msg
 
("Use -getGroupsWithoutPushNotification") - __deprecated_msg
 
(void) - asyncGetMyGroupsFromServer:failure:
 
(void) - asyncGetPublicGroupsFromServerWithCursor:pageSize:success:failure:
 
(void) - asyncSearchPublicGroupWithId:success:failure:
 
(void) - asyncCreateGroupWithSubject:description:invitees:message:setting:success:failure:
 
(void) - asyncFetchGroupInfo:includeMembersList:success:failure:
 
(void) - asyncFetchGroupBansList:success:failure:
 
(void) - asyncAddOccupants:toGroup:welcomeMessage:success:failure:
 
(void) - asyncRemoveOccupants:fromGroup:success:failure:
 
(void) - asyncBlockOccupants:fromGroup:success:failure:
 
(void) - asyncUnblockOccupants:forGroup:success:failure:
 
(void) - asyncChangeGroupSubject:forGroup:success:failure:
 
(void) - asyncChangeDescription:forGroup:success:failure:
 
(void) - asyncLeaveGroup:success:failure:
 
(void) - asyncDestroyGroup:success:failure:
 
(void) - asyncBlockGroup:success:failure:
 
(void) - asyncUnblockGroup:success:failure:
 
(void) - asyncJoinPublicGroup:success:failure:
 
(void) - asyncApplyJoinPublicGroup:message:success:failure:
 
(void) - asyncAcceptJoinApplication:applicant:success:failure:
 
(void) - asyncDeclineJoinApplication:applicant:reason:success:failure:
 
(void) - asyncAcceptInvitationFromGroup:inviter:success:failure:
 
(void) - asyncDeclineInvitationFromGroup:inviter:reason:success:failure:
 
(void) - asyncIgnoreGroupPush:ignore:success:failure:
 

Detailed Description

IAgoraGroupManager.h This protocol defines the group operations

Author
Hyphenate
Version
3.00

Group operations

Method Documentation

- ("Use -getJoinedGroups") __deprecated_msg
required

Get all groups, will load from DB if not exist in memory

Returns
Group list<AgoraGroup>
- ("Use -getJoinedGroups") __deprecated_msg
required

Load all groups from DB, will update group list in memory after loading

Returns
Group list<AgoraGroup>
- ("Use -getGroupsWithoutPushNotification") __deprecated_msg
required

Get ID list of groups which block push from memory

Returns
Group id list<NSString>
- (void) acceptInvitationFromGroup: (NSString *)  aGroupId
inviter: (NSString *)  aUsername
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Accept a group invitation

Parameters
aGroupIdGroup id
aUsernameInviter
aCompletionBlockThe callback block of completion
- (AgoraGroup *) acceptInvitationFromGroup: (NSString *)  aGroupId
inviter: (NSString *)  aUsername
error: (AgoraError **)  pError 
required

Accept a group invitation

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
aUsernameInviter
pErrorError
Returns
Joined group instance
- (AgoraError *) acceptJoinApplication: (NSString *)  aGroupId
applicant: (NSString *)  aUsername 
required

Accept a group request, owner‘s authority is required

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
aUsernameThe applicant
Returns
Error
- (void) addAdmin: (NSString *)  aAdmin
toGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Add group admin, need Owner permissions

Parameters
aAdminAdmin
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) addAdmin: (NSString *)  aAdmin
toGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Add group admin, need Owner permissions

Synchronization method will block the current thread

Parameters
aAdminAdmin
aGroupIdGroup id
pErrorError
Returns
Group instance
- (void) addDelegate: (3_1_0) 
(3_2_2) 
("Use -")  EM_DEPRECATED_IOS[IAgoraGroupManager addDelegate:delegateQueue:] 
required

Add delegate

Parameters
aDelegateDelegate
- (void) addDelegate: (id< AgoraGroupManagerDelegate >)  aDelegate
delegateQueue: (dispatch_queue_t)  aQueue 
required

Add delegate

Parameters
aDelegateDelegate
aQueue(optional) The queue of calling delegate methods. Pass in nil to run on main thread.
- (void) addMembers: (NSArray *)  aUsers
toGroup: (NSString *)  aGroupId
message: (NSString *)  aMessage
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Invite User to join a group

Parameters
aUsersInvited users
aGroupIdGroup id
aMessageWelcome message
aCompletionBlockThe callback block of completion
- (AgoraGroup *) addOccupants: (NSArray *)  aOccupants
toGroup: (NSString *)  aGroupId
welcomeMessage: (NSString *)  aWelcomeMessage
error: (AgoraError **)  pError 
required

Invite User to join a group

Synchronization method will block the current thread

Parameters
aOccupantsInvited users
aGroupIdGroup id
aWelcomeMessageWelcome message
pErrorError
Returns
AgoraGroup Group instance, return nil if fail
- (void) addWhiteListMembers: (NSArray *)  aMembers
fromGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

add white list members, need Owner / Admin permissions

Parameters
aMembersThe list of whitelist, type is <NSString>
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) addWhiteListMembers: (NSArray *)  aMembers
fromGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

add white list members, need Owner / Admin permissions

Synchronization method will block the current thread

Parameters
aMembersThe list of whitelist, type is <NSString>
aGroupIdGroup id
pErrorError
Returns
Group instance
- (AgoraGroup *) applyJoinPublicGroup: (NSString *)  aGroupId
message: (NSString *)  aMessage
error: (AgoraError **)  pError 
required

Request to join a public group, group style should be AgoraGroupStylePublicJoinNeedApproval

Synchronization method will block the current thread

Parameters
aGroupIdPublic group id
aMessageRequest info
pErrorError
Returns
Group instance
- (void) approveJoinGroupRequest: (NSString *)  aGroupId
sender: (NSString *)  aUsername
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Approve a group request, owner‘s authority is required

Parameters
aGroupIdGroup id
aUsernameGroup request sender
aCompletionBlockThe callback block of completion
- (void) asyncAcceptInvitationFromGroup: (NSString *)  aGroupId
inviter: (NSString *)  aUsername
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -acceptInvitationFromGroup:inviter:completion: instead")  __deprecated_msg 
required

Accept group's invitation

Parameters
groupIdGroup id
aUsernameInviter
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncAcceptJoinApplication: (NSString *)  aGroupId
applicant: (NSString *)  aUsername
success: (void(^)())  aSuccessBlock
failure: ("Use -approveJoinGroupRequest:sender:completion: instead")  __deprecated_msg 
required

Accept user's application, need owner‘s authority

Parameters
aGroupIdGroup id
aUsernameThe applicant
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncAddOccupants: (NSArray *)  aOccupants
toGroup: (NSString *)  aGroupId
welcomeMessage: (NSString *)  aWelcomeMessage
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -addMembers:toGroup:message:completion: instead")  __deprecated_msg 
required

Invite User to join a group

Parameters
aOccupantsInvited users
aGroupIdGroup id
aWelcomeMessageWelcome message
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncApplyJoinPublicGroup: (NSString *)  aGroupId
message: (NSString *)  aMessage
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -requestToJoinPublicGroup:message:completion: instead")  __deprecated_msg 
required

Apply to join a public group, group style should be AgoraGroupStylePublicJoinNeedApproval

Parameters
aGroupIdPublic group id
aMessageApply message
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncBlockGroup: (NSString *)  aGroupId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -blockGroup:completion: instead")  __deprecated_msg 
required

Block group’s message, server will blocks the messages of the group to user, owner can't block the group's message

Parameters
aGroupIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncBlockOccupants: (NSArray *)  aOccupants
fromGroup: (NSString *)  aGroupId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -blockMembers:fromGroup:completion: instead")  __deprecated_msg 
required

Add users to group’s blacklist, need owner‘s authority

Parameters
aOccupantsUsers to be added
aGroupIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncChangeDescription: (NSString *)  aDescription
forGroup: (NSString *)  aGroupId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -updateDescription:forGroup:completion: instead")  __deprecated_msg 
required

Change group’s description, need owner‘s authority

Parameters
aDescriptionNew group‘s description
aGroupIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncChangeGroupSubject: (NSString *)  aSubject
forGroup: (NSString *)  aGroupId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -updateGroupSubject:forGroup:completion: instead")  __deprecated_msg 
required

Change group’s subject, need owner‘s authority

Parameters
aSubjectNew group‘s subject
aGroupIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncCreateGroupWithSubject: (NSString *)  aSubject
description: (NSString *)  aDescription
invitees: (NSArray *)  aInvitees
message: (NSString *)  aMessage
setting: (AgoraGroupOptions *)  aSetting
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -createGroupWithSubject:description:invitees:message:setting:completion instead")  __deprecated_msg 
required

Create a group

Parameters
aSubjectGroup subject
aDescriptionGroup description
aInviteesGroup members, without creater
aMessageInvitation message
aSettingGroup options
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncDeclineInvitationFromGroup: (NSString *)  aGroupId
inviter: (NSString *)  aUsername
reason: (NSString *)  aReason
success: (void(^)())  aSuccessBlock
failure: ("Use -declineGroupInvitation:inviter:reason:completion: instead")  __deprecated_msg 
required

Decline a group invitation

Parameters
aGroupIdGroup id
aUsernameInviter
aReasonDecline reason
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncDeclineJoinApplication: (NSString *)  aGroupId
applicant: (NSString *)  aUsername
reason: (NSString *)  aReason
success: (void(^)())  aSuccessBlock
failure: ("Use -declineJoinGroupRequest:sender:reason:completion: instead")  __deprecated_msg 
required

Decline user's application, need owner‘s authority

Parameters
aGroupIdGroup id
aUsernameThe applicant
aReasonDecline reason
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncDestroyGroup: (NSString *)  aGroupId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -destroyGroup:completion: instead")  __deprecated_msg 
required

Destroy a group, need owner‘s authority

Parameters
aGroupIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncFetchGroupBansList: (NSString *)  aGroupId
success: (void(^)(NSArray *aList))  aSuccessBlock
failure: ("Use -getGroupBlackListFromServerByID:completion: instead")  __deprecated_msg 
required

Get group‘s blacklist, need owner’s authority

Parameters
aGroupIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncFetchGroupInfo: (NSString *)  aGroupId
includeMembersList: (BOOL)  aIncludeMembersList
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -getGroupSpecificationFromServerByID:includeMembersList:completion: instead")  __deprecated_msg 
required

Fetch group detail

Parameters
aGroupIdGroup id
aIncludeMembersListWhether get member list
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncGetMyGroupsFromServer: (void(^)(NSArray *aList))  aSuccessBlock
failure: ("Use -getJoinedGroupsFromServerWithCompletion:")  __deprecated_msg 
required

Get all of user's groups from server, will update group list in memory and DB after success

Parameters
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncGetPublicGroupsFromServerWithCursor: (NSString *)  aCursor
pageSize: (NSInteger)  aPageSize
success: (void(^)(AgoraCursorResult *aCursor))  aSuccessBlock
failure: ("Use -getPublicGroupsFromServerWithCursor:pageSize:completion:")  __deprecated_msg 
required

Get public groups in the specified range from the server

Parameters
aCursorGet the cursor to join the group, call pass empty for the first time
aPageSizeExpect result count, will return all results if < 0
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncIgnoreGroupPush: (NSString *)  aGroupId
ignore: (BOOL)  aIsIgnore
success: (void(^)())  aSuccessBlock
failure: ("Use -updatePushServiceForGroup:isPushEnabled:completion: instead")  __deprecated_msg 
required

Block / unblock group message‘s push notification

Parameters
aGroupIdGroup id
aIgnoreWhether block
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncJoinPublicGroup: (NSString *)  aGroupId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -joinPublicGroup:completion: instead")  __deprecated_msg 
required

Join a public group, group style should be AgoraGroupStylePublicOpenJoin

Parameters
aGroupIdPublic group id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncLeaveGroup: (NSString *)  aGroupId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -leaveGroup:completion: instead")  __deprecated_msg 
required

Leave a group, owner can't leave the group, can only destroy the group

Parameters
aGroupIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncRemoveOccupants: (NSArray *)  aOccupants
fromGroup: (NSString *)  aGroupId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -removeMembers:fromGroup:completion: instead")  __deprecated_msg 
required

Remove members from group, need owner‘s authority

Parameters
aOccupantsUsers to be removed
aGroupIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncSearchPublicGroupWithId: (NSString *)  aGroundId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -searchPublicGroupWithId:completion:")  __deprecated_msg 
required

Search public group with the id

Parameters
aGroundIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncUnblockGroup: (NSString *)  aGroupId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -unblockGroup:completion: instead")  __deprecated_msg 
required

Unblock group message

Parameters
aGroupIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) asyncUnblockOccupants: (NSArray *)  aOccupants
forGroup: (NSString *)  aGroupId
success: (void(^)(AgoraGroup *aGroup))  aSuccessBlock
failure: ("Use -unblockMembers:fromGroup:completion: instead")  __deprecated_msg 
required

Remove users from group‘s blacklist, need owner‘s authority

Parameters
aOccupantsUsers to be removed
aGroupIdGroup id
aSuccessBlockThe callback block of success
aFailureBlockThe callback block of failure
- (void) blockGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Block group messages, server blocks the messages from the group, owner can't block the group's messages

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) blockGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Block group messages, server will blocks the messages from the group, owner can't block the group's message

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
pErrorError
Returns
AgoraGroup Group instance
- (void) blockMembers: (NSArray *)  aMembers
fromGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Add users to group blacklist, owner‘s authority is required

Parameters
aMembersUsers to be added blackList
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) blockOccupants: (NSArray *)  aOccupants
fromGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Add users to group blacklist, required owner‘s authority

Synchronization method will block the current thread

Parameters
aOccupantsUsers to be added blackList
aGroupIdGroup id
pErrorError
Returns
AgoraGroup Group instance
- (AgoraGroup *) changeDescription: (NSString *)  aDescription
forGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Change group description, owner‘s authority is required

Synchronization method will block the current thread

Parameters
aDescriptionNew group description
aGroupIdGroup id
pErrorError
Returns
AgoraGroup Group instance
- (AgoraGroup *) changeGroupSubject: (NSString *)  aSubject
forGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Change group subject, owner‘s authority is required

Synchronization method will block the current thread

Parameters
aSubjectNew group subject
aGroupIdGroup id
pErrorError
Returns
AgoraGroup Group instance
- (void) createGroupWithSubject: (NSString *)  aSubject
description: (NSString *)  aDescription
invitees: (NSArray *)  aInvitees
message: (NSString *)  aMessage
setting: (AgoraGroupOptions *)  aSetting
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Create a group

Parameters
aSubjectGroup subject
aDescriptionGroup description
aInviteesGroup members, without creater
aMessageInvitation message
aSettingGroup options
aCompletionBlockThe callback block of completion
- (AgoraGroup *) createGroupWithSubject: (NSString *)  aSubject
description: (NSString *)  aDescription
invitees: (NSArray *)  aInvitees
message: (NSString *)  aMessage
setting: (AgoraGroupOptions *)  aSetting
error: (AgoraError **)  pError 
required

Create a group

Synchronization method will block the current thread

Parameters
aSubjectGroup subject
aDescriptionGroup description
aInviteesGroup members, without creater
aMessageInvitation message
aSettingGroup options
pErrorError
Returns
AgoraGroup Created group
- (void) declineGroupInvitation: (NSString *)  aGroupId
inviter: (NSString *)  aInviter
reason: (NSString *)  aReason
completion: (void(^)(AgoraError *aError))  aCompletionBlock 
required

Decline a group invitation

Parameters
aGroupIdGroup id
aInviterInviter
aReasonDecline reason
aCompletionBlockThe callback block of completion
- (AgoraError *) declineInvitationFromGroup: (NSString *)  aGroupId
inviter: (NSString *)  aUsername
reason: (NSString *)  aReason 
required

Decline a group invitation

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
aUsernameInviter
aReasonDecline reason
Returns
Error
- (AgoraError *) declineJoinApplication: (NSString *)  aGroupId
applicant: (NSString *)  aUsername
reason: (NSString *)  aReason 
required

Decline a group request, owner‘s authority is required

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
aUsernameGroup request sender
aReasonDecline reason
Returns
Error
- (void) declineJoinGroupRequest: (NSString *)  aGroupId
sender: (NSString *)  aUsername
reason: (NSString *)  aReason
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Decline a group request, owner‘s authority is required

Parameters
aGroupIdGroup id
aUsernameGroup request sender
aReasonDecline reason
aCompletionBlockThe callback block of completion
- (AgoraError *) destroyGroup: (NSString *)  aGroupId
required

Destroy a group, owner‘s authority is required

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
Returns
AgoraError Error, return nil if success
- (void) destroyGroup: (NSString *)  aGroupId
completion: (3_1_0) 
(3_3_0) 
("Use -")  EM_DEPRECATED_IOS[IAgoraGroupManager destroyGroup:finishCompletion:] 
required

Destroy a group, owner‘s authority is required

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) destroyGroup: (NSString *)  aGroupId
error: (3_1_0) 
(3_3_0) 
("Use -")  EM_DEPRECATED_IOS[IAgoraGroupManager destroyGroup:] 
required

Destroy a group, owner‘s authority is required

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
pErrorError
Returns
Destroyed group, return nil if failed
- (void) destroyGroup: (NSString *)  aGroupId
finishCompletion: (void(^)(AgoraError *aError))  aCompletionBlock 
required

Destroy a group, owner‘s authority is required

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (void) downloadGroupSharedFileWithId: (NSString *)  aGroupId
filePath: (NSString *)  aFilePath
sharedFileId: (NSString *)  aSharedFileId
progress: (void(^)(int progress))  aProgressBlock
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Download the share file of group

Parameters
aGroupIdGroup id
aFilePathPath of file
aSharedFileIdshare file id
aProgressBlockThe block of attachment upload progress
aCompletionBlockThe callback block of completion
- (NSArray *) fetchGroupBansList: (NSString *)  aGroupId
error: (3_1_0) 
(3_3_0) 
("Use -")  EM_DEPRECATED_IOS[IAgoraGroupManager getGroupBlacklistFromServerWithId:pageNumber:pageSize:error:] 
required

Get group‘s blacklist, required owner’s authority

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
pErrorError
Returns
Group blacklist<NSString>
- (AgoraGroup *) fetchGroupInfo: (NSString *)  aGroupId
includeMembersList: (BOOL)  aIncludeMembersList
error: (3_1_0) 
(3_3_0) 
("Use -")  EM_DEPRECATED_IOS[IAgoraGroupManager getGroupSpecificationFromServerWithId:error:] 
required

Fetch group info

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
aIncludeMembersListWhether to get member list,When YES, returns 200 members
pErrorError
Returns
Group instance
- (void) getGroupAnnouncementWithId: (NSString *)  aGroupId
completion: (void(^)(NSString *aAnnouncement, AgoraError *aError))  aCompletionBlock 
required

Get the announcement of group from the server

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (NSString *) getGroupAnnouncementWithId: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Get the announcement of group from the server

Parameters
aGroupIdGroup id
pErrorerror
Returns
Group Announcement, return nil if fail
- (void) getGroupBlackListFromServerByID: (NSString *)  aGroupId
completion: (3_1_0) 
(3_3_0) 
("Use -")  EM_DEPRECATED_IOS[IAgoraGroupManager getGroupBlacklistFromServerWithId:pageNumber:pageSize:completion:] 
required

Get group's blacklist, owner’s authority is required

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (void) getGroupBlacklistFromServerWithId: (NSString *)  aGroupId
pageNumber: (NSInteger)  aPageNum
pageSize: (NSInteger)  aPageSize
completion: (void(^)(NSArray *aList, AgoraError *aError))  aCompletionBlock 
required

Get group's blacklist, need owner / admin permissions

Parameters
aGroupIdGroup id
aPageNumPage number
aPageSizePage size
aCompletionBlockThe callback block of completion
- (NSArray *) getGroupBlacklistFromServerWithId: (NSString *)  aGroupId
pageNumber: (NSInteger)  aPageNum
pageSize: (NSInteger)  aPageSize
error: (AgoraError **)  pError 
required

Get the blacklist of group from the server, need owner / admin permissions

Parameters
aGroupIdGroup id
aPageNumPage number
aPageSizePage size
pErrorError
Returns
NSArray Group blackList
- (void) getGroupFileListWithId: (NSString *)  aGroupId
pageNumber: (NSInteger)  aPageNum
pageSize: (NSInteger)  aPageSize
completion: (void(^)(NSArray *aList, AgoraError *aError))  aCompletionBlock 
required

Get the share files of group from the server

Parameters
aGroupIdGroup id
aPageNumPage number
aPageSizePage size
aCompletionBlockThe callback block of completion
- (NSArray *) getGroupFileListWithId: (NSString *)  aGroupId
pageNumber: (NSInteger)  aPageNum
pageSize: (NSInteger)  aPageSize
error: (AgoraError **)  pError 
required

Get the share files of group from the server

Parameters
aGroupIdGroup id
aPageNumPage number
aPageSizePage size
pErrorerror
Returns
NSArray The share files of group
- (void) getGroupMemberListFromServerWithId: (NSString *)  aGroupId
cursor: (NSString *)  aCursor
pageSize: (NSInteger)  aPageSize
completion: (void(^)(AgoraCursorResult *aResult, AgoraError *aError))  aCompletionBlock 
required

Get the list of group members from the server

Parameters
aGroupIdGroup id
aCursorGet the cursor to join the group, call pass empty for the first time
aPageSizePage size
aCompletionBlockThe callback block of completion
- (AgoraCursorResult *) getGroupMemberListFromServerWithId: (NSString *)  aGroupId
cursor: (NSString *)  aCursor
pageSize: (NSInteger)  aPageSize
error: (AgoraError **)  pError 
required

Get the list of group members from the server

Parameters
aGroupIdGroup id
aCursorGet the cursor to join the group, call pass empty for the first time
aPageSizePage size
pErrorError
Returns
AgoraCursorResult List and cursor
- (void) getGroupMuteListFromServerWithId: (NSString *)  aGroupId
pageNumber: (NSInteger)  aPageNum
pageSize: (NSInteger)  aPageSize
completion: (void(^)(NSArray *aList, AgoraError *aError))  aCompletionBlock 
required

Get the mutes of group from the server

Parameters
aGroupIdGroup id
aPageNumPage number
aPageSizePage size
aCompletionBlockThe callback block of completion
- (NSArray *) getGroupMuteListFromServerWithId: (NSString *)  aGroupId
pageNumber: (NSInteger)  aPageNum
pageSize: (NSInteger)  aPageSize
error: (AgoraError **)  pError 
required

Get the mutes of group from the server

Parameters
aGroupIdGroup id
aPageNumPage number
aPageSizePage size
pErrorError
Returns
NSArray Group muteList
- (void) getGroupSpecificationFromServerByID: (NSString *)  aGroupID
includeMembersList: (BOOL)  aIncludeMembersList
completion: (3_1_0) 
(3_3_0) 
("Use -")  EM_DEPRECATED_IOS[IAgoraGroupManager getGroupSpecificationFromServerWithId:completion:] 
required

Fetch group specification

Parameters
aGroupIdGroup id
aIncludeMembersListWhether to get member list,When YES, returns 200 members
aCompletionBlockThe callback block of completion
- (void) getGroupSpecificationFromServerWithId: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Fetch group specification, including: ID, name, description, setting, owner, admins

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) getGroupSpecificationFromServerWithId: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Fetch group info,include ID, name, description,setting, owner, admins

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
pErrorError
Returns
AgoraGroup Group instance
- (void) getGroupSpecificationFromServerWithId: (NSString *)  aGroupId
fetchMembers: (BOOL)  fetchMembers
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Fetch group specification, including: ID, name, description, setting, owner, admins

Parameters
aGroupIdGroup id
fetchMembersFetchMembers whether need fetch group members, default action fetch 200 members
aCompletionBlockThe callback block of completion
- (AgoraGroup *) getGroupSpecificationFromServerWithId: (NSString *)  aGroupId
fetchMembers: (BOOL)  fetchMembers
error: (AgoraError **)  pError 
required

Fetch group info,include ID, name, description,setting, owner, admins

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
fetchMembersWhether need fetch group members, default action fetch 200 members
pErrorError
Returns
AgoraGroup Group instance
- (NSArray *) getGroupsWithoutPushNotification: (AgoraError **)  pError
required

Get the list of groups which have disabled Apple Push Notification Service

Parameters
pErrorError
Returns
NSArray groupId list
- (void) getGroupWhiteListFromServerWithId: (NSString *)  aGroupId
completion: (void(^)(NSArray *aList, AgoraError *aError))  aCompletionBlock 
required

Get the whitelist of group from the server

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (NSArray *) getGroupWhiteListFromServerWithId: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Get the whitelist of group from the server

Parameters
aGroupIdGroup id
pErrorError
Returns
NSArray Group whiteList
- (NSArray *) getJoinedGroups
required

Get all groups

Returns
NSArray Group list<AgoraGroup>
- (void) getJoinedGroupsFromServerWithCompletion: (3_1_0) 
(3_3_0) 
("Use -")  EM_DEPRECATED_IOS[IAgoraGroupManager getJoinedGroupsFromServerWithPage:pageSize:completion:] 
required

Get all of user's groups from server

Parameters
aCompletionBlockThe callback block of completion
- (void) getJoinedGroupsFromServerWithPage: (NSInteger)  aPageNum
pageSize: (NSInteger)  aPageSize
completion: (void(^)(NSArray *aList, AgoraError *aError))  aCompletionBlock 
required

Get pagesize number group you joined from the server.

Parameters
aPageNumGet the cursor to join the group, call pass empty for the first time
aPageSizeThe number of results expected to be returned, if <0 then all results will be returned at once
aCompletionBlockThe callback block of completion
- (NSArray *) getJoinedGroupsFromServerWithPage: (NSInteger)  aPageNum
pageSize: (NSInteger)  aPageSize
error: (AgoraError **)  pError 
required

Get pagesize number group you joined from the server.

Synchronization method will block the current thread

Parameters
aPageNumGet the cursor to join the group, call pass empty for the first time
aPageSizeThe number of results expected to be returned, if <0 then all results will be returned at once
pErrorError
Returns
NSArray Group list<AgoraGroup>
- (NSArray *) getMyGroupsFromServerWithError: (3_1_0) 
(3_3_0) 
("Use -")  EM_DEPRECATED_IOS[IAgoraGroupManager getJoinedGroupsFromServerWithPage:pageSize:error:] 
required

Get all of user's groups from server

Synchronization method will block the current thread

Parameters
pErrorError
Returns
Group list<AgoraGroup>
- (void) getPublicGroupsFromServerWithCursor: (NSString *)  aCursor
pageSize: (NSInteger)  aPageSize
completion: (void(^)(AgoraCursorResult *aResult, AgoraError *aError))  aCompletionBlock 
required

Get public groups with the specified range from the server

Parameters
aCursorGet the cursor to join the group, call pass empty for the first time
aPageSizeThe number of results expected to be returned, if <0 then all results will be returned at once
aCompletionBlockThe callback block of completion
- (AgoraCursorResult *) getPublicGroupsFromServerWithCursor: (NSString *)  aCursor
pageSize: (NSInteger)  aPageSize
error: (AgoraError **)  pError 
required

Get public groups with the specified range from the server

Synchronization method will block the current thread

Parameters
aCursorGet the cursor to join the group, call pass empty for the first time
aPageSizeThe number of results expected to be returned, if <0 then all results will be returned at once
pErrorError
Returns
AgoraCursorResult The result
- (AgoraError *) ignoreGroupPush: (NSString *)  aGroupId
ignore: (BOOL)  aIsIgnore 
required

Block/unblock group message‘s push notification

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
aIsIgnoreShow/ignore push notificatino
Returns
Error
- (AgoraError *) ignoreGroupsPush: (NSArray *)  aGroupIDs
ignore: (BOOL)  aIsIgnore 
required

Block/unblock group message‘s push notification

Synchronization method will block the current thread

Parameters
aGroupIDsGroup ids list
aIsIgnoreShow or ignore push notification
Returns
Error
- (void) isMemberInWhiteListFromServerWithGroupId: (NSString *)  aGroupId
completion: (void(^)(BOOL inWhiteList, AgoraError *aError))  aCompletionBlock 
required

Gets whether the member is on the whitelist

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (BOOL) isMemberInWhiteListFromServerWithGroupId: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Gets whether the member is on the whitelist

Parameters
aGroupIdGroup id
pErrorError
Returns
BOOL YES: in whiteList NO: not in whiteList
- (void) joinPublicGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Join a public group, group style should be AgoraGroupStylePublicOpenJoin

Parameters
aGroupIdPublic group id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) joinPublicGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Join a public group, group style should be AgoraGroupStylePublicOpenJoin

Synchronization method will block the current thread

Parameters
aGroupIdPublic group id
pErrorError
Returns
Joined public group
- (void) leaveGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraError *aError))  aCompletionBlock 
required

Leave a group, owner can't leave the group, can only destroy the group

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (void) leaveGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Leave a group, owner can't leave the group, can only destroy the group

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
pErrorError
- (void) muteAllMembersFromGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

mute all members, need Owner / Admin permissions

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) muteAllMembersFromGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

mute all members, need Owner / Admin permissions

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
pErrorError
Returns
Group instance
- (void) muteMembers: (NSArray *)  aMuteMembers
muteMilliseconds: (NSInteger)  aMuteMilliseconds
fromGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Mute group members, need Owner / Admin permissions

Synchronization method will block the current thread

Parameters
aMuteMembersThe list of mute, type is <NSString>
aMuteMillisecondsMuted time duration in millisecond
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) muteMembers: (NSArray *)  aMuteMembers
muteMilliseconds: (NSInteger)  aMuteMilliseconds
fromGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Mute group members, need Owner / Admin permissions

Synchronization method will block the current thread

Parameters
aMuteMembersThe list of mute, type is <NSString>
aMuteMillisecondsMuted time duration in millisecond
aGroupIdGroup id
pErrorError
Returns
Group instance
- (void) removeAdmin: (NSString *)  aAdmin
fromGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Remove group admin, need Owner permissions

Parameters
aAdminAdmin
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) removeAdmin: (NSString *)  aAdmin
fromGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Remove group admin, need Owner permissions

Synchronization method will block the current thread

Parameters
aAdminAdmin
aGroupIdGroup id
pErrorError
Returns
Group instance
- (void) removeDelegate: (id)  aDelegate
required

Remove delegate

Parameters
aDelegateDelegate
- (void) removeGroupSharedFileWithId: (NSString *)  aGroupId
sharedFileId: (NSString *)  aSharedFileId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Remove the share file of group

Parameters
aGroupIdGroup id
aSharedFileIdshare file Id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) removeGroupSharedFileWithId: (NSString *)  aGroupId
sharedFileId: (NSString *)  aSharedFileId
error: (AgoraError **)  pError 
required

Remove the share file of group

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
aSharedFileIdshare file Id
pErrorerror
Returns
Group instance
- (void) removeMembers: (NSArray *)  aUsers
fromGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Remove members from a group, owner‘s authority is required

Parameters
aUsersUsers to be removed
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) removeOccupants: (NSArray *)  aOccupants
fromGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Remove members from a group, required owner‘s authority

Synchronization method will block the current thread

Parameters
aOccupantsUsers to be removed
aGroupIdGroup id
pErrorError
Returns
AgoraGroup Group instance
- (void) removeWhiteListMembers: (NSArray *)  aMembers
fromGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

remove white list members, need Owner / Admin permissions

Parameters
aMembersThe remove list of whitelist, type is <NSString>
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) removeWhiteListMembers: (NSArray *)  aMembers
fromGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

remove white list members, need Owner / Admin permissions

Synchronization method will block the current thread

Parameters
aMembersThe remove list of whitelist, type is <NSString>
aGroupIdGroup id
pErrorError
Returns
Group instance
- (void) requestToJoinPublicGroup: (NSString *)  aGroupId
message: (NSString *)  aMessage
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Request to join a public group, group style should be AgoraGroupStylePublicJoinNeedApproval

Parameters
aGroupIdPublic group id
aMessageApply info
aCompletionBlockThe callback block of completion
- (void) searchPublicGroupWithId: (NSString *)  aGroundId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Search public group with group id

Parameters
aGroundIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) searchPublicGroupWithId: (NSString *)  aGroundId
error: (AgoraError **)  pError 
required

Search a public group with the id

Synchronization method will block the current thread

Parameters
aGroundIdGroup id
pErrorError
Returns
AgoraGroup Searched group
- (void) unblockGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Unblock group message

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) unblockGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Unblock group messages

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
pErrorError
Returns
AgoraGroup Group instance
- (void) unblockMembers: (NSArray *)  aMembers
fromGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Remove users out of group blacklist, owner‘s authority is required

Parameters
aMembersUsers to be removed from blackList
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) unblockOccupants: (NSArray *)  aOccupants
forGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Remove users from group blacklist, required owner‘s authority

Synchronization method will block the current thread

Parameters
aOccupantsUsers to be removed from blackList
aGroupIdGroup id
pErrorError
Returns
AgoraGroup Group instance
- (void) unmuteAllMembersFromGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

unmute all members, need Owner / Admin permissions

Parameters
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) unmuteAllMembersFromGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

unmute all members, need Owner / Admin permissions

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
pErrorError
Returns
Group instance
- (void) unmuteMembers: (NSArray *)  aMembers
fromGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Unmute group members, need Owner / Admin permissions

Parameters
aMembersThe list of unmute, type is <NSString>
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (AgoraGroup *) unmuteMembers: (NSArray *)  aMembers
fromGroup: (NSString *)  aGroupId
error: (AgoraError **)  pError 
required

Unmute group members, need Owner / Admin permissions

Synchronization method will block the current thread

Parameters
aMembersThe list of unmute, type is <NSString>
aGroupIdGroup id
pErrorError
Returns
Group instance
- (void) updateDescription: (NSString *)  aDescription
forGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Change the group description, owner‘s authority is required

Parameters
aDescriptionNew group‘s description
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (void) updateGroupAnnouncementWithId: (NSString *)  aGroupId
announcement: (NSString *)  aAnnouncement
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Update the announcement of group, need Owner / Admin permissions

Parameters
aGroupIdGroup id
aAnnouncementannouncement of group
aCompletionBlockThe callback block of completion
- (AgoraGroup *) updateGroupAnnouncementWithId: (NSString *)  aGroupId
announcement: (NSString *)  aAnnouncement
error: (AgoraError **)  pError 
required

Update the announcement of group, need Owner / Admin permissions

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
aAnnouncementannouncement of group
pErrorerror
Returns
Group instance
- (void) updateGroupExtWithId: (NSString *)  aGroupId
ext: (NSString *)  aExt
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Update the extended of the group, need Owner

Parameters
aGroupIdGroup id
aExtExtended of the group
aCompletionBlockThe callback block of completion
- (AgoraGroup *) updateGroupExtWithId: (NSString *)  aGroupId
ext: (NSString *)  aExt
error: (AgoraError **)  pError 
required

Update the extended of the group, need Owner

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
aExtExtended of the group
pErrorerror
Returns
Group instance
- (void) updateGroupOwner: (NSString *)  aGroupId
newOwner: (NSString *)  aNewOwner
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Change group owner, need Owner permissions

Parameters
aGroupIdGroup id
aNewOwnerNew group owner
aCompletionBlockThe callback block of completion
- (AgoraGroup *) updateGroupOwner: (NSString *)  aGroupId
newOwner: (NSString *)  aNewOwner
error: (AgoraError **)  pError 
required

Change group owner, need Owner permissions

Synchronization method will block the current thread

Parameters
aGroupIdGroup id
aNewOwnerNew group owner
pErrorError
Returns
AgoraGroup Group instance
- (void) updateGroupSubject: (NSString *)  aSubject
forGroup: (NSString *)  aGroupId
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Change the group subject, owner‘s authority is required

Parameters
aSubjectNew group‘s subject
aGroupIdGroup id
aCompletionBlockThe callback block of completion
- (void) updatePushServiceForGroup: (NSString *)  aGroupId
isPushEnabled: (BOOL)  aIsEnable
completion: (void(^)(AgoraGroup *aGroup, AgoraError *aError))  aCompletionBlock 
required

Block/unblock group message‘s push notification

Parameters
aGroupIdGroup id
aIsEnableWhether enable
aCompletionBlockThe callback block of completion
- (void) updatePushServiceForGroups: (NSArray *)  aGroupIDs
isPushEnabled: (BOOL)  aIsEnable
completion: (void(^)(NSArray *groups, AgoraError *aError))  aCompletionBlock 
required

Block/unblock group message‘s push notification

Parameters
aGroupIDsGroup ids list
aIsEnableWhether enable
aCompletionBlockThe callback block of completion
- (void) uploadGroupSharedFileWithId: (NSString *)  aGroupId
filePath: (NSString *)  aFilePath
progress: (void(^)(int progress))  aProgressBlock
completion: (void(^)(AgoraGroupSharedFile *aSharedFile, AgoraError *aError))  aCompletionBlock 
required

Upload the share file of group

Parameters
aGroupIdGroup id
aFilePathPath of file
pErrorerror
Returns
Group instance

The documentation for this protocol was generated from the following file: