#import <IEMGroupManager.h>
@header IEMGroupManager.h @abstract This protocol defines the group operations
- Author
- Hyphenate
- Version
- 3.00
Group operations
◆ __deprecated_msg [1/3]
Get all groups, will load from DB if not exist in memory
- Returns
- Group list<EMGroup>
◆ __deprecated_msg [2/3]
Load all groups from DB, will update group list in memory after loading
- Returns
- Group list<EMGroup>
◆ __deprecated_msg [3/3]
- ("Use -getGroupsWithoutPushNotification") __deprecated_msg |
|
|
|
|
required |
Get ID list of groups which block push from memory
- Returns
- Group id list<NSString>
◆ acceptInvitationFromGroup:inviter:completion:
- (void) acceptInvitationFromGroup: |
|
(NSString *) |
aGroupId |
inviter: |
|
(NSString *) |
aUsername |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Accept a group invitation
- Parameters
-
aGroupId | Group id |
aUsername | Inviter |
aCompletionBlock | The callback block of completion |
◆ acceptInvitationFromGroup:inviter:error:
- (EMGroup *) acceptInvitationFromGroup: |
|
(NSString *) |
aGroupId |
inviter: |
|
(NSString *) |
aUsername |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Accept a group invitation
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
aUsername | Inviter |
pError | Error |
- Returns
- Joined group instance
◆ acceptJoinApplication:applicant:
- (EMError *) acceptJoinApplication: |
|
(NSString *) |
aGroupId |
applicant: |
|
(NSString *) |
aUsername |
|
|
| |
|
required |
Accept a group request, owner‘s authority is required
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
aUsername | The applicant |
- Returns
- Error
◆ addAdmin:toGroup:completion:
- (void) addAdmin: |
|
(NSString *) |
aAdmin |
toGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Add group admin, need Owner permissions
- Parameters
-
aAdmin | Admin |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ addAdmin:toGroup:error:
- (EMGroup *) addAdmin: |
|
(NSString *) |
aAdmin |
toGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Add group admin, need Owner permissions
Synchronization method will block the current thread
- Parameters
-
aAdmin | Admin |
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ addDelegate:
- (void) addDelegate: |
|
(3_1_0) |
|
|
|
(3_2_2) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMGroupManager addDelegate:delegateQueue:] |
|
|
| |
|
required |
◆ addDelegate:delegateQueue:
Add delegate
- Parameters
-
aDelegate | Delegate |
aQueue | (optional) The queue of calling delegate methods. Pass in nil to run on main thread. |
◆ addMembers:toGroup:message:completion:
- (void) addMembers: |
|
(NSArray *) |
aUsers |
toGroup: |
|
(NSString *) |
aGroupId |
message: |
|
(NSString *) |
aMessage |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Invite User to join a group
- Parameters
-
aUsers | Invited users |
aGroupId | Group id |
aMessage | Welcome message |
aCompletionBlock | The callback block of completion |
◆ addOccupants:toGroup:welcomeMessage:error:
- (EMGroup *) addOccupants: |
|
(NSArray *) |
aOccupants |
toGroup: |
|
(NSString *) |
aGroupId |
welcomeMessage: |
|
(NSString *) |
aWelcomeMessage |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Invite User to join a group
Synchronization method will block the current thread
- Parameters
-
aOccupants | Invited users |
aGroupId | Group id |
aWelcomeMessage | Welcome message |
pError | Error |
- Returns
- Group instance, return nil if fail
◆ addWhiteListMembers:fromGroup:completion:
- (void) addWhiteListMembers: |
|
(NSArray *) |
aMembers |
fromGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
add white list members, need Owner / Admin permissions
- Parameters
-
aMembers | The list of whitelist, type is <NSString> |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ addWhiteListMembers:fromGroup:error:
- (EMGroup *) addWhiteListMembers: |
|
(NSArray *) |
aMembers |
fromGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
add white list members, need Owner / Admin permissions
Synchronization method will block the current thread
- Parameters
-
aMembers | The list of whitelist, type is <NSString> |
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ applyJoinPublicGroup:message:error:
- (EMGroup *) applyJoinPublicGroup: |
|
(NSString *) |
aGroupId |
message: |
|
(NSString *) |
aMessage |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Request to join a public group, group style should be EMGroupStylePublicJoinNeedApproval
Synchronization method will block the current thread
- Parameters
-
aGroupId | Public group id |
aMessage | Request info |
pError | Error |
- Returns
- Group instance
◆ approveJoinGroupRequest:sender:completion:
- (void) approveJoinGroupRequest: |
|
(NSString *) |
aGroupId |
sender: |
|
(NSString *) |
aUsername |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Approve a group request, owner‘s authority is required
- Parameters
-
aGroupId | Group id |
aUsername | Group request sender |
aCompletionBlock | The callback block of completion |
◆ asyncAcceptInvitationFromGroup:inviter:success:failure:
- (void) asyncAcceptInvitationFromGroup: |
|
(NSString *) |
aGroupId |
inviter: |
|
(NSString *) |
aUsername |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -acceptInvitationFromGroup:inviter:completion") |
__deprecated_msg |
|
|
| |
|
required |
Accept group's invitation
- Parameters
-
groupId | Group id |
aUsername | Inviter |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncAcceptJoinApplication:applicant:success:failure:
Accept user's application, need owner‘s authority
- Parameters
-
aGroupId | Group id |
aUsername | The applicant |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncAddOccupants:toGroup:welcomeMessage:success:failure:
- (void) asyncAddOccupants: |
|
(NSArray *) |
aOccupants |
toGroup: |
|
(NSString *) |
aGroupId |
welcomeMessage: |
|
(NSString *) |
aWelcomeMessage |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -addMembers:toGroup:message:completion:") |
__deprecated_msg |
|
|
| |
|
required |
Invite User to join a group
- Parameters
-
aOccupants | Invited users |
aGroupId | Group id |
aWelcomeMessage | Welcome message |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncApplyJoinPublicGroup:message:success:failure:
Apply to join a public group, group style should be EMGroupStylePublicJoinNeedApproval
- Parameters
-
aGroupId | Public group id |
aMessage | Apply info |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncBlockGroup:success:failure:
- (void) asyncBlockGroup: |
|
(NSString *) |
aGroupId |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -blockGroup:completion:") |
__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
-
aGroupId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncBlockOccupants:fromGroup:success:failure:
- (void) asyncBlockOccupants: |
|
(NSArray *) |
aOccupants |
fromGroup: |
|
(NSString *) |
aGroupId |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -blockMembers:fromGroup:completion:") |
__deprecated_msg |
|
|
| |
|
required |
Add users to group’s blacklist, need owner‘s authority
- Parameters
-
aOccupants | Users to be added |
aGroupId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncChangeDescription:forGroup:success:failure:
- (void) asyncChangeDescription: |
|
(NSString *) |
aDescription |
forGroup: |
|
(NSString *) |
aGroupId |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -updateDescription:forGroup:completion") |
__deprecated_msg |
|
|
| |
|
required |
Change group’s description, need owner‘s authority
- Parameters
-
aDescription | New group‘s description |
aGroupId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncChangeGroupSubject:forGroup:success:failure:
- (void) asyncChangeGroupSubject: |
|
(NSString *) |
aSubject |
forGroup: |
|
(NSString *) |
aGroupId |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -updateGroupSubject:forGroup:completion") |
__deprecated_msg |
|
|
| |
|
required |
Change group’s subject, need owner‘s authority
- Parameters
-
aSubject | New group‘s subject |
aGroupId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncCreateGroupWithSubject:description:invitees:message:setting:success:failure:
- (void) asyncCreateGroupWithSubject: |
|
(NSString *) |
aSubject |
description: |
|
(NSString *) |
aDescription |
invitees: |
|
(NSArray *) |
aInvitees |
message: |
|
(NSString *) |
aMessage |
setting: |
|
(EMGroupOptions *) |
aSetting |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -createGroupWithSubject:description:invitees:message:setting:completion") |
__deprecated_msg |
|
|
| |
|
required |
Create a group
- Parameters
-
aSubject | Group subject |
aDescription | Group description |
aInvitees | Group members, without creater |
aMessage | Invitation message |
aSetting | Group options |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncDeclineInvitationFromGroup:inviter:reason:success:failure:
Decline a group invitation
- Parameters
-
aGroupId | Group id |
aUsername | Inviter |
aReason | Decline reason |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncDeclineJoinApplication:applicant:reason:success:failure:
Decline user's application, need owner‘s authority
- Parameters
-
aGroupId | Group id |
aUsername | The applicant |
aReason | Decline reason |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncDestroyGroup:success:failure:
- (void) asyncDestroyGroup: |
|
(NSString *) |
aGroupId |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -destroyGroup:completion") |
__deprecated_msg |
|
|
| |
|
required |
Destroy a group, need owner‘s authority
- Parameters
-
aGroupId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncFetchGroupBansList:success:failure:
Get group‘s blacklist, need owner’s authority
- Parameters
-
aGroupId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncFetchGroupInfo:includeMembersList:success:failure:
Fetch group info
- Parameters
-
aGroupId | Group id |
aIncludeMembersList | Whether get member list |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncGetMyGroupsFromServer:failure:
Get all of user's groups from server, will update group list in memory and DB after success
- Parameters
-
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncGetPublicGroupsFromServerWithCursor:pageSize:success:failure:
Get public groups in the specified range from the server
- Parameters
-
aCursor | Cursor, input nil the first time |
aPageSize | Expect result count, will return all results if < 0 |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncIgnoreGroupPush:ignore:success:failure:
Block / unblock group message‘s push notification
- Parameters
-
aGroupId | Group id |
aIgnore | Whether block |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncJoinPublicGroup:success:failure:
- (void) asyncJoinPublicGroup: |
|
(NSString *) |
aGroupId |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -joinPublicGroup:completion") |
__deprecated_msg |
|
|
| |
|
required |
Join a public group, group style should be EMGroupStylePublicOpenJoin
- Parameters
-
aGroupId | Public group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncLeaveGroup:success:failure:
- (void) asyncLeaveGroup: |
|
(NSString *) |
aGroupId |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -leaveGroup:completion") |
__deprecated_msg |
|
|
| |
|
required |
Leave a group, owner can't leave the group, can only destroy the group
- Parameters
-
aGroupId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncRemoveOccupants:fromGroup:success:failure:
Remove members from group, need owner‘s authority
- Parameters
-
aOccupants | Users to be removed |
aGroupId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncSearchPublicGroupWithId:success:failure:
Search public group with the id
- Parameters
-
aGroundId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncUnblockGroup:success:failure:
- (void) asyncUnblockGroup: |
|
(NSString *) |
aGroupId |
success: |
|
(void(^)(EMGroup *aGroup)) |
aSuccessBlock |
failure: |
|
("Use -unblockGroup:completion") |
__deprecated_msg |
|
|
| |
|
required |
Unblock group message
- Parameters
-
aGroupId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ asyncUnblockOccupants:forGroup:success:failure:
Remove users from group‘s blacklist, need owner‘s authority
- Parameters
-
aOccupants | Users to be removed |
aGroupId | Group id |
aSuccessBlock | The callback block of success |
aFailureBlock | The callback block of failure |
◆ blockGroup:completion:
- (void) blockGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Block group messages, server blocks the messages from the group, owner can't block the group's messages
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ blockGroup:error:
- (EMGroup *) blockGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
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
-
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ blockMembers:fromGroup:completion:
- (void) blockMembers: |
|
(NSArray *) |
aMembers |
fromGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Add users to group blacklist, owner‘s authority is required
- Parameters
-
aMembers | Users to be added |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ blockOccupants:fromGroup:error:
- (EMGroup *) blockOccupants: |
|
(NSArray *) |
aOccupants |
fromGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Add users to group blacklist, required owner‘s authority
Synchronization method will block the current thread
- Parameters
-
aOccupants | Users to be added |
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ changeDescription:forGroup:error:
- (EMGroup *) changeDescription: |
|
(NSString *) |
aDescription |
forGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Change group description, owner‘s authority is required
Synchronization method will block the current thread
- Parameters
-
aDescription | New group description |
aGroupId | Group id |
pError | Error |
- Returns
- Group
◆ changeGroupSubject:forGroup:error:
- (EMGroup *) changeGroupSubject: |
|
(NSString *) |
aSubject |
forGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Change group subject, owner‘s authority is required
Synchronization method will block the current thread
- Parameters
-
aSubject | New group subject |
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ createGroupWithSubject:description:invitees:message:setting:completion:
- (void) createGroupWithSubject: |
|
(NSString *) |
aSubject |
description: |
|
(NSString *) |
aDescription |
invitees: |
|
(NSArray *) |
aInvitees |
message: |
|
(NSString *) |
aMessage |
setting: |
|
(EMGroupOptions *) |
aSetting |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Create a group
- Parameters
-
aSubject | Group subject |
aDescription | Group description |
aInvitees | Group members, without creater |
aMessage | Invitation message |
aSetting | Group options |
aCompletionBlock | The callback block of completion |
◆ createGroupWithSubject:description:invitees:message:setting:error:
- (EMGroup *) createGroupWithSubject: |
|
(NSString *) |
aSubject |
description: |
|
(NSString *) |
aDescription |
invitees: |
|
(NSArray *) |
aInvitees |
message: |
|
(NSString *) |
aMessage |
setting: |
|
(EMGroupOptions *) |
aSetting |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Create a group
Synchronization method will block the current thread
- Parameters
-
aSubject | Group subject |
aDescription | Group description |
aInvitees | Group members, without creater |
aMessage | Invitation message |
aSetting | Group options |
pError | Error |
- Returns
- Created group
◆ declineGroupInvitation:inviter:reason:completion:
- (void) declineGroupInvitation: |
|
(NSString *) |
aGroupId |
inviter: |
|
(NSString *) |
aInviter |
reason: |
|
(NSString *) |
aReason |
completion: |
|
(void(^)(EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Decline a group invitation
- Parameters
-
aGroupId | Group id |
aInviter | Inviter |
aReason | Decline reason |
aCompletionBlock | The callback block of completion |
◆ declineInvitationFromGroup:inviter:reason:
- (EMError *) declineInvitationFromGroup: |
|
(NSString *) |
aGroupId |
inviter: |
|
(NSString *) |
aUsername |
reason: |
|
(NSString *) |
aReason |
|
|
| |
|
required |
Decline a group invitation
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
aUsername | Inviter |
aReason | Decline reason |
- Returns
- Error
◆ declineJoinApplication:applicant:reason:
- (EMError *) 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
-
aGroupId | Group id |
aUsername | Group request sender |
aReason | Decline reason |
- Returns
- Error
◆ declineJoinGroupRequest:sender:reason:completion:
- (void) declineJoinGroupRequest: |
|
(NSString *) |
aGroupId |
sender: |
|
(NSString *) |
aUsername |
reason: |
|
(NSString *) |
aReason |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Decline a group request, owner‘s authority is required
- Parameters
-
aGroupId | Group id |
aUsername | Group request sender |
aReason | Decline reason |
aCompletionBlock | The callback block of completion |
◆ destroyGroup:
- (EMError *) destroyGroup: |
|
(NSString *) |
aGroupId |
|
|
required |
Destroy a group, owner‘s authority is required
Synchronization method will block the current thread
- Parameters
-
- Returns
- Error, return nil if success
◆ destroyGroup:completion:
- (void) destroyGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(3_1_0) |
|
|
|
(3_3_0) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMGroupManager destroyGroup:finishCompletion:] |
|
|
| |
|
required |
Destroy a group, owner‘s authority is required
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ destroyGroup:error:
- (EMGroup *) destroyGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(3_1_0) |
|
|
|
(3_3_0) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMGroupManager destroyGroup:] |
|
|
| |
|
required |
Destroy a group, owner‘s authority is required
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
pError | Error |
- Returns
- Destroyed group, return nil if failed
◆ destroyGroup:finishCompletion:
- (void) destroyGroup: |
|
(NSString *) |
aGroupId |
finishCompletion: |
|
(void(^)(EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Destroy a group, owner‘s authority is required
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ downloadGroupSharedFileWithId:filePath:sharedFileId:progress:completion:
- (void) downloadGroupSharedFileWithId: |
|
(NSString *) |
aGroupId |
filePath: |
|
(NSString *) |
aFilePath |
sharedFileId: |
|
(NSString *) |
aSharedFileId |
progress: |
|
(void(^)(int progress)) |
aProgressBlock |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Download the share file of group
- Parameters
-
aGroupId | Group id |
aFilePath | Path of file |
aSharedFileId | share file id |
aProgressBlock | The block of attachment upload progress |
aCompletionBlock | The callback block of completion |
◆ fetchGroupBansList:error:
- (NSArray *) fetchGroupBansList: |
|
(NSString *) |
aGroupId |
error: |
|
(3_1_0) |
|
|
|
(3_3_0) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMGroupManager getGroupBlacklistFromServerWithId:pageNumber:pageSize:error:] |
|
|
| |
|
required |
Get group‘s blacklist, required owner’s authority
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
pError | Error |
- Returns
- Group blacklist<NSString>
◆ fetchGroupInfo:includeMembersList:error:
- (EMGroup *) fetchGroupInfo: |
|
(NSString *) |
aGroupId |
includeMembersList: |
|
(BOOL) |
aIncludeMembersList |
error: |
|
(3_1_0) |
|
|
|
(3_3_0) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMGroupManager getGroupSpecificationFromServerWithId:error:] |
|
|
| |
|
required |
Fetch group info
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
aIncludeMembersList | Whether to get member list,When YES, returns 200 members |
pError | Error |
- Returns
- Group instance
◆ getGroupAnnouncementWithId:completion:
- (void) getGroupAnnouncementWithId: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(NSString *aAnnouncement, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Get the announcement of group from the server
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ getGroupAnnouncementWithId:error:
- (NSString *) getGroupAnnouncementWithId: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Get the announcement of group from the server
- Parameters
-
aGroupId | Group id |
pError | error |
- Returns
- Group Announcement, return nil if fail
◆ getGroupBlackListFromServerByID:completion:
- (void) getGroupBlackListFromServerByID: |
|
(NSString *) |
aGroupId |
completion: |
|
(3_1_0) |
|
|
|
(3_3_0) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMGroupManager getGroupBlacklistFromServerWithId:pageNumber:pageSize:completion:] |
|
|
| |
|
required |
Get group's blacklist, owner’s authority is required
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ getGroupBlacklistFromServerWithId:pageNumber:pageSize:completion:
- (void) getGroupBlacklistFromServerWithId: |
|
(NSString *) |
aGroupId |
pageNumber: |
|
(NSInteger) |
aPageNum |
pageSize: |
|
(NSInteger) |
aPageSize |
completion: |
|
(void(^)(NSArray *aList, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Get group's blacklist, need owner / admin permissions
- Parameters
-
aGroupId | Group id |
aPageNum | Page number |
aPageSize | Page size |
aCompletionBlock | The callback block of completion |
◆ getGroupBlacklistFromServerWithId:pageNumber:pageSize:error:
- (NSArray *) getGroupBlacklistFromServerWithId: |
|
(NSString *) |
aGroupId |
pageNumber: |
|
(NSInteger) |
aPageNum |
pageSize: |
|
(NSInteger) |
aPageSize |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Get the blacklist of group from the server, need owner / admin permissions
- Parameters
-
aGroupId | Group id |
aPageNum | Page number |
aPageSize | Page size |
pError | Error |
◆ getGroupFileListWithId:pageNumber:pageSize:completion:
- (void) getGroupFileListWithId: |
|
(NSString *) |
aGroupId |
pageNumber: |
|
(NSInteger) |
aPageNum |
pageSize: |
|
(NSInteger) |
aPageSize |
completion: |
|
(void(^)(NSArray *aList, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Get the share files of group from the server
- Parameters
-
aGroupId | Group id |
aPageNum | Page number |
aPageSize | Page size |
aCompletionBlock | The callback block of completion |
◆ getGroupFileListWithId:pageNumber:pageSize:error:
- (NSArray *) getGroupFileListWithId: |
|
(NSString *) |
aGroupId |
pageNumber: |
|
(NSInteger) |
aPageNum |
pageSize: |
|
(NSInteger) |
aPageSize |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Get the share files of group from the server
- Parameters
-
aGroupId | Group id |
aPageNum | Page number |
aPageSize | Page size |
pError | error |
- Returns
- The share files of group
◆ getGroupMemberListFromServerWithId:cursor:pageSize:completion:
- (void) getGroupMemberListFromServerWithId: |
|
(NSString *) |
aGroupId |
cursor: |
|
(NSString *) |
aCursor |
pageSize: |
|
(NSInteger) |
aPageSize |
completion: |
|
(void(^)(EMCursorResult *aResult, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Get the list of group members from the server
- Parameters
-
aGroupId | Group id |
aCursor | Cursor, input nil the first time |
aPageSize | Page size |
aCompletionBlock | The callback block of completion |
◆ getGroupMemberListFromServerWithId:cursor:pageSize:error:
- (EMCursorResult *) getGroupMemberListFromServerWithId: |
|
(NSString *) |
aGroupId |
cursor: |
|
(NSString *) |
aCursor |
pageSize: |
|
(NSInteger) |
aPageSize |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Get the list of group members from the server
- Parameters
-
aGroupId | Group id |
aCursor | Cursor, input nil the first time |
aPageSize | Page size |
pError | Error |
- Returns
- List and cursor
◆ getGroupMuteListFromServerWithId:pageNumber:pageSize:completion:
- (void) getGroupMuteListFromServerWithId: |
|
(NSString *) |
aGroupId |
pageNumber: |
|
(NSInteger) |
aPageNum |
pageSize: |
|
(NSInteger) |
aPageSize |
completion: |
|
(void(^)(NSArray *aList, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Get the mutes of group from the server
Group manager and the group administrator allow the operate
- Parameters
-
aGroupId | Group id |
aPageNum | Page number |
aPageSize | Page size |
aCompletionBlock | The callback block of completion |
◆ getGroupMuteListFromServerWithId:pageNumber:pageSize:error:
- (NSArray *) getGroupMuteListFromServerWithId: |
|
(NSString *) |
aGroupId |
pageNumber: |
|
(NSInteger) |
aPageNum |
pageSize: |
|
(NSInteger) |
aPageSize |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Get the mutes of group from the server
Group manager and the group administrator allow the operate
- Parameters
-
aGroupId | Group id |
aPageNum | Page number |
aPageSize | Page size |
pError | Error |
◆ getGroupSpecificationFromServerByID:includeMembersList:completion:
- (void) getGroupSpecificationFromServerByID: |
|
(NSString *) |
aGroupID |
includeMembersList: |
|
(BOOL) |
aIncludeMembersList |
completion: |
|
(3_1_0) |
|
|
|
(3_3_0) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMGroupManager getGroupSpecificationFromServerWithId:completion:] |
|
|
| |
|
required |
Fetch group specification
- Parameters
-
aGroupId | Group id |
aIncludeMembersList | Whether to get member list,When YES, returns 200 members |
aCompletionBlock | The callback block of completion |
◆ getGroupSpecificationFromServerWithId:completion:
- (void) getGroupSpecificationFromServerWithId: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Fetch group specification, including: ID, name, description, setting, owner, admins
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ getGroupSpecificationFromServerWithId:error:
- (EMGroup *) getGroupSpecificationFromServerWithId: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Fetch group info,include ID, name, description,setting, owner, admins
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ getGroupSpecificationFromServerWithId:fetchMembers:completion:
- (void) getGroupSpecificationFromServerWithId: |
|
(NSString *) |
aGroupId |
fetchMembers: |
|
(BOOL) |
fetchMembers |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Fetch group specification, including: ID, name, description, setting, owner, admins
- Parameters
-
aGroupId | Group id |
fetchMembers | FetchMembers whether need fetch group members, default action fetch 200 members |
aCompletionBlock | The callback block of completion |
◆ getGroupSpecificationFromServerWithId:fetchMembers:error:
- (EMGroup *) getGroupSpecificationFromServerWithId: |
|
(NSString *) |
aGroupId |
fetchMembers: |
|
(BOOL) |
fetchMembers |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Fetch group info,include ID, name, description,setting, owner, admins
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
fetchMembers | FetchMembers whether need fetch group members, default action fetch 200 members |
pError | Error |
- Returns
- Group instance
◆ getGroupsWithoutPushNotification:
- (NSArray *) getGroupsWithoutPushNotification: |
|
(3_3_2) |
|
|
|
(3_8_3) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMPushManager noPushGroups] |
|
|
| |
|
required |
Get the list of groups which have disabled Apple Push Notification Service
- Parameters
-
◆ getGroupWhiteListFromServerWithId:completion:
- (void) getGroupWhiteListFromServerWithId: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(NSArray *aList, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Get the whitelist of group from the server
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ getGroupWhiteListFromServerWithId:error:
- (NSArray *) getGroupWhiteListFromServerWithId: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Get the whitelist of group from the server
- Parameters
-
aGroupId | Group id |
pError | Error |
◆ getJoinedGroups
- (NSArray *) getJoinedGroups |
|
|
|
|
required |
Get all groups
- Returns
- Group list<EMGroup>
◆ getJoinedGroupsFromServerWithCompletion:
- (void) getJoinedGroupsFromServerWithCompletion: |
|
(3_1_0) |
|
|
|
(3_3_0) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMGroupManager getJoinedGroupsFromServerWithPage:pageSize:completion:] |
|
|
| |
|
required |
Get all of user's groups from server
- Parameters
-
aCompletionBlock | The callback block of completion |
◆ getJoinedGroupsFromServerWithPage:pageSize:completion:
- (void) getJoinedGroupsFromServerWithPage: |
|
(NSInteger) |
aPageNum |
pageSize: |
|
(NSInteger) |
aPageSize |
completion: |
|
(void(^)(NSArray *aList, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Get pagesize number group you joined from the server.
- Parameters
-
aPageNum | Page number |
aPageSize | Page size |
aCompletionBlock | The callback block of completion |
◆ getJoinedGroupsFromServerWithPage:pageSize:error:
- (NSArray *) getJoinedGroupsFromServerWithPage: |
|
(NSInteger) |
aPageNum |
pageSize: |
|
(NSInteger) |
aPageSize |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Get pagesize number group you joined from the server.
Synchronization method will block the current thread
- Parameters
-
aPageNum | Page number |
aPageSize | Page size |
pError | Error |
- Returns
- Group list<EMGroup>
◆ getMyGroupsFromServerWithError:
- (NSArray *) getMyGroupsFromServerWithError: |
|
(3_1_0) |
|
|
|
(3_3_0) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMGroupManager getJoinedGroupsFromServerWithPage:pageSize:error:] |
|
|
| |
|
required |
Get all of user's groups from server
Synchronization method will block the current thread
- Parameters
-
- Returns
- Group list<EMGroup>
◆ getPublicGroupsFromServerWithCursor:pageSize:completion:
- (void) getPublicGroupsFromServerWithCursor: |
|
(NSString *) |
aCursor |
pageSize: |
|
(NSInteger) |
aPageSize |
completion: |
|
(void(^)(EMCursorResult *aResult, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Get public groups with the specified range from the server
- Parameters
-
aCursor | Cursor, input nil the first time |
aPageSize | Expect result count, return all results if count is less than zero |
aCompletionBlock | The callback block of completion |
◆ getPublicGroupsFromServerWithCursor:pageSize:error:
- (EMCursorResult *) getPublicGroupsFromServerWithCursor: |
|
(NSString *) |
aCursor |
pageSize: |
|
(NSInteger) |
aPageSize |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Get public groups with the specified range from the server
Synchronization method will block the current thread
- Parameters
-
aCursor | Cursor, input nil the first time |
aPageSize | Expect result count, return all results if count is less than zero |
pError | Error |
- Returns
- The result
◆ ignoreGroupPush:ignore:
- (EMError *) ignoreGroupPush: |
|
(NSString *) |
aGroupId |
ignore: |
|
(3_3_2) |
|
|
|
(3_8_3) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMPushManager updatePushServiceForGroups:disablePush:] |
|
|
| |
|
required |
Block/unblock group message‘s push notification
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
aIsIgnore | Show/ignore push notificatino |
- Returns
- Error
◆ ignoreGroupsPush:ignore:
- (EMError *) ignoreGroupsPush: |
|
(NSArray *) |
aGroupIDs |
ignore: |
|
(3_3_2) |
|
|
|
(3_8_3) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMPushManager updatePushServiceForGroups:disablePush:] |
|
|
| |
|
required |
Block/unblock group message‘s push notification
Synchronization method will block the current thread
- Parameters
-
aGroupIDs | Group ids list |
aIsIgnore | Show or ignore push notification |
- Returns
- Error
◆ isMemberInWhiteListFromServerWithGroupId:completion:
- (void) isMemberInWhiteListFromServerWithGroupId: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(BOOL inWhiteList, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Gets whether the member is on the whitelist
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ isMemberInWhiteListFromServerWithGroupId:error:
- (BOOL) isMemberInWhiteListFromServerWithGroupId: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Gets whether the member is on the whitelist
- Parameters
-
aGroupId | Group id |
pError | Error |
◆ joinPublicGroup:completion:
- (void) joinPublicGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Join a public group, group style should be EMGroupStylePublicOpenJoin
- Parameters
-
aGroupId | Public group id |
aCompletionBlock | The callback block of completion |
◆ joinPublicGroup:error:
- (EMGroup *) joinPublicGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Join a public group, group style should be EMGroupStylePublicOpenJoin
Synchronization method will block the current thread
- Parameters
-
aGroupId | Public group id |
pError | Error |
- Returns
- Joined public group
◆ leaveGroup:completion:
- (void) leaveGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Leave a group, owner can't leave the group, can only destroy the group
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ leaveGroup:error:
- (void) leaveGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Leave a group, owner can't leave the group, can only destroy the group
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
pError | Error |
◆ muteAllMembersFromGroup:completion:
- (void) muteAllMembersFromGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
mute all members, need Owner / Admin permissions
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ muteAllMembersFromGroup:error:
- (EMGroup *) muteAllMembersFromGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
mute all members, need Owner / Admin permissions
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ muteMembers:muteMilliseconds:fromGroup:completion:
- (void) muteMembers: |
|
(NSArray *) |
aMuteMembers |
muteMilliseconds: |
|
(NSInteger) |
aMuteMilliseconds |
fromGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Mute group members, need Owner / Admin permissions
Synchronization method will block the current thread
- Parameters
-
aMuteMembers | The list of mute, type is <NSString> |
aMuteMilliseconds | Muted time duration in millisecond |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ muteMembers:muteMilliseconds:fromGroup:error:
- (EMGroup *) muteMembers: |
|
(NSArray *) |
aMuteMembers |
muteMilliseconds: |
|
(NSInteger) |
aMuteMilliseconds |
fromGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Mute group members, need Owner / Admin permissions
Synchronization method will block the current thread
- Parameters
-
aMuteMembers | The list of mute, type is <NSString> |
aMuteMilliseconds | Muted time duration in millisecond |
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ removeAdmin:fromGroup:completion:
- (void) removeAdmin: |
|
(NSString *) |
aAdmin |
fromGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Remove group admin, need Owner permissions
- Parameters
-
aAdmin | Admin |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ removeAdmin:fromGroup:error:
- (EMGroup *) removeAdmin: |
|
(NSString *) |
aAdmin |
fromGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Remove group admin, need Owner permissions
Synchronization method will block the current thread
- Parameters
-
aAdmin | Admin |
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ removeDelegate:
- (void) removeDelegate: |
|
(id) |
aDelegate |
|
|
required |
Remove delegate
- Parameters
-
◆ removeGroupSharedFileWithId:sharedFileId:completion:
- (void) removeGroupSharedFileWithId: |
|
(NSString *) |
aGroupId |
sharedFileId: |
|
(NSString *) |
aSharedFileId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Remove the share file of group
- Parameters
-
aGroupId | Group id |
aSharedFileId | share file Id |
aCompletionBlock | The callback block of completion |
◆ removeGroupSharedFileWithId:sharedFileId:error:
- (EMGroup *) removeGroupSharedFileWithId: |
|
(NSString *) |
aGroupId |
sharedFileId: |
|
(NSString *) |
aSharedFileId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Remove the share file of group
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
aSharedFileId | share file Id |
pError | error |
- Returns
- Group instance
◆ removeMembers:fromGroup:completion:
- (void) removeMembers: |
|
(NSArray *) |
aUsers |
fromGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Remove members from a group, owner‘s authority is required
- Parameters
-
aUsers | Users to be removed |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ removeOccupants:fromGroup:error:
- (EMGroup *) removeOccupants: |
|
(NSArray *) |
aOccupants |
fromGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Remove members from a group, required owner‘s authority
Synchronization method will block the current thread
- Parameters
-
aOccupants | Users to be removed |
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ removeWhiteListMembers:fromGroup:completion:
- (void) removeWhiteListMembers: |
|
(NSArray *) |
aMembers |
fromGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
remove white list members, need Owner / Admin permissions
- Parameters
-
aMembers | The remove list of whitelist, type is <NSString> |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ removeWhiteListMembers:fromGroup:error:
- (EMGroup *) removeWhiteListMembers: |
|
(NSArray *) |
aMembers |
fromGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
remove white list members, need Owner / Admin permissions
Synchronization method will block the current thread
- Parameters
-
aMembers | The remove list of whitelist, type is <NSString> |
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ requestToJoinPublicGroup:message:completion:
- (void) requestToJoinPublicGroup: |
|
(NSString *) |
aGroupId |
message: |
|
(NSString *) |
aMessage |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Request to join a public group, group style should be EMGroupStylePublicJoinNeedApproval
- Parameters
-
aGroupId | Public group id |
aMessage | Apply info |
aCompletionBlock | The callback block of completion |
◆ searchPublicGroupWithId:completion:
- (void) searchPublicGroupWithId: |
|
(NSString *) |
aGroundId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Search public group with group id
- Parameters
-
aGroundId | Group id |
aCompletionBlock | The callback block of completion |
◆ searchPublicGroupWithId:error:
- (EMGroup *) searchPublicGroupWithId: |
|
(NSString *) |
aGroundId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Search a public group with the id
Synchronization method will block the current thread
- Parameters
-
aGroundId | Group id |
pError | Error |
- Returns
- The group with the id
◆ unblockGroup:completion:
- (void) unblockGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Unblock group message
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ unblockGroup:error:
- (EMGroup *) unblockGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Unblock group messages
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ unblockMembers:fromGroup:completion:
- (void) unblockMembers: |
|
(NSArray *) |
aMembers |
fromGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Remove users out of group blacklist, owner‘s authority is required
- Parameters
-
aMembers | Users to be removed |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ unblockOccupants:forGroup:error:
- (EMGroup *) unblockOccupants: |
|
(NSArray *) |
aOccupants |
forGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Remove users from group blacklist, required owner‘s authority
Synchronization method will block the current thread
- Parameters
-
aOccupants | Users to be removed |
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ unmuteAllMembersFromGroup:completion:
- (void) unmuteAllMembersFromGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
unmute all members, need Owner / Admin permissions
- Parameters
-
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ unmuteAllMembersFromGroup:error:
- (EMGroup *) unmuteAllMembersFromGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
unmute all members, need Owner / Admin permissions
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ unmuteMembers:fromGroup:completion:
- (void) unmuteMembers: |
|
(NSArray *) |
aMembers |
fromGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Unmute group members, need Owner / Admin permissions
- Parameters
-
aMembers | The list of unmute, type is <NSString> |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ unmuteMembers:fromGroup:error:
- (EMGroup *) unmuteMembers: |
|
(NSArray *) |
aMembers |
fromGroup: |
|
(NSString *) |
aGroupId |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Unmute group members, need Owner / Admin permissions
Synchronization method will block the current thread
- Parameters
-
aMembers | The list of unmute, type is <NSString> |
aGroupId | Group id |
pError | Error |
- Returns
- Group instance
◆ updateDescription:forGroup:completion:
- (void) updateDescription: |
|
(NSString *) |
aDescription |
forGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Change the group description, owner‘s authority is required
- Parameters
-
aDescription | New group‘s description |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ updateGroupAnnouncementWithId:announcement:completion:
- (void) updateGroupAnnouncementWithId: |
|
(NSString *) |
aGroupId |
announcement: |
|
(NSString *) |
aAnnouncement |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Update the announcement of group, need Owner / Admin permissions
- Parameters
-
aGroupId | Group id |
aAnnouncement | announcement of group |
aCompletionBlock | The callback block of completion |
◆ updateGroupAnnouncementWithId:announcement:error:
- (EMGroup *) updateGroupAnnouncementWithId: |
|
(NSString *) |
aGroupId |
announcement: |
|
(NSString *) |
aAnnouncement |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Update the announcement of group, need Owner / Admin permissions
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
aAnnouncement | announcement of group |
pError | error |
- Returns
- Group instance
◆ updateGroupExtWithId:ext:completion:
- (void) updateGroupExtWithId: |
|
(NSString *) |
aGroupId |
ext: |
|
(NSString *) |
aExt |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Update the extended of the group, need Owner
- Parameters
-
aGroupId | Group id |
aExt | Extended of the group |
aCompletionBlock | The callback block of completion |
◆ updateGroupExtWithId:ext:error:
- (EMGroup *) updateGroupExtWithId: |
|
(NSString *) |
aGroupId |
ext: |
|
(NSString *) |
aExt |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Update the extended of the group, need Owner
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
aExt | Extended of the group |
pError | error |
- Returns
- Group instance
◆ updateGroupOwner:newOwner:completion:
- (void) updateGroupOwner: |
|
(NSString *) |
aGroupId |
newOwner: |
|
(NSString *) |
aNewOwner |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Change group owner, need Owner permissions
- Parameters
-
aGroupId | Group id |
aNewOwner | New group owner |
aCompletionBlock | The callback block of completion |
◆ updateGroupOwner:newOwner:error:
- (EMGroup *) updateGroupOwner: |
|
(NSString *) |
aGroupId |
newOwner: |
|
(NSString *) |
aNewOwner |
error: |
|
(EMError **) |
pError |
|
|
| |
|
required |
Change group owner, need Owner permissions
Synchronization method will block the current thread
- Parameters
-
aGroupId | Group id |
aNewOwner | New group owner |
pError | Error |
- Returns
- Group instance
◆ updateGroupSubject:forGroup:completion:
- (void) updateGroupSubject: |
|
(NSString *) |
aSubject |
forGroup: |
|
(NSString *) |
aGroupId |
completion: |
|
(void(^)(EMGroup *aGroup, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Change the group subject, owner‘s authority is required
- Parameters
-
aSubject | New group‘s subject |
aGroupId | Group id |
aCompletionBlock | The callback block of completion |
◆ updatePushServiceForGroup:isPushEnabled:completion:
- (void) updatePushServiceForGroup: |
|
(NSString *) |
aGroupId |
isPushEnabled: |
|
(BOOL) |
aIsEnable |
completion: |
|
(3_3_2) |
|
|
|
(3_8_3) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMPushManager updatePushServiceForGroups:disablePush:completion:] |
|
|
| |
|
required |
Block/unblock group message‘s push notification
- Parameters
-
aGroupId | Group id |
aIsEnable | Whether enable |
aCompletionBlock | The callback block of completion |
◆ updatePushServiceForGroups:isPushEnabled:completion:
- (void) updatePushServiceForGroups: |
|
(NSArray *) |
aGroupIDs |
isPushEnabled: |
|
(BOOL) |
aIsEnable |
completion: |
|
(3_3_2) |
|
|
|
(3_8_3) |
|
|
|
("Use -") |
EM_DEPRECATED_IOS[IEMPushManager updatePushServiceForGroups:disablePush:completion:] |
|
|
| |
|
required |
Block/unblock group message‘s push notification
- Parameters
-
aGroupIDs | Group ids list |
aIsEnable | Whether enable |
aCompletionBlock | The callback block of completion |
◆ uploadGroupSharedFileWithId:filePath:progress:completion:
- (void) uploadGroupSharedFileWithId: |
|
(NSString *) |
aGroupId |
filePath: |
|
(NSString *) |
aFilePath |
progress: |
|
(void(^)(int progress)) |
aProgressBlock |
completion: |
|
(void(^)(EMGroupSharedFile *aSharedFile, EMError *aError)) |
aCompletionBlock |
|
|
| |
|
required |
Upload the share file of group
- Parameters
-
aGroupId | Group id |
aFilePath | Path of file |
pError | error |
- Returns
- Group instance
The documentation for this protocol was generated from the following file: