即时通讯

  • 即时通讯 > API 文档 > iOS API 参考 > Protocol References > BMXGroupManager Protocol Reference

    BMXGroupManager Protocol Reference

    最近更新时间:2021-06-27 12:05:20

    BMXGroupManager Protocol Reference

    Conforms to NSObject
    Declared in BMXGroupManager.h

    - getGroupListForceRefresh:completion:

    获取群组列表

    - (void)getGroupListForceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( NSArray *groupList , BMXError *error )) _aCompletionBlock_

    Parameters

    forceRefresh 如果设置了forceRefresh则从服务器拉取
    aCompletionBlock GroupList, Error

    Discussion

    获取群组列表

    Declared In

    BMXGroupManager.h

    - getGroupInfoByGroupId:forceRefresh:completion:

    获取群信息

    - (void)getGroupInfoByGroupId:(long long) _groupId_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( BMXGroup *group , BMXError *error )) _aCompletionBlock_

    Parameters

    groupId 群id
    forceRefresh 如果设置了forceRefresh则从服务器拉取
    aCompletionBlock

    Discussion

    获取群信息

    Declared In

    BMXGroupManager.h

    - getGroupInfoByGroupIdArray:forceRefresh:completion:

    获取传入群组id的群组信息列表,如果设置了forceRefresh则从服务器拉取

    - (void)getGroupInfoByGroupIdArray:(NSArray<NSNumber*> *) _groupIdArray_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( NSArray *aGroups , BMXError *aError )) _aCompletionBlock_

    Discussion

    获取传入群组id的群组信息列表,如果设置了forceRefresh则从服务器拉取

    Declared In

    BMXGroupManager.h

    - getGroupByName:completion:

    通过群名称查询本地群信息,从本地数据库中通过群名称查询获取群组

    - (void)getGroupByName:(NSString *) _name_ completion:(void ( ^ ) ( NSArray *groupList , BMXError *error )) _aCompletionBlock_

    Parameters

    name 查询的群名称关键字
    aCompletionBlock 搜索结果返回的群列表信息,BMXErrorCode

    Discussion

    通过群名称查询本地群信息,从本地数据库中通过群名称查询获取群组

    Declared In

    BMXGroupManager.h

    - creatGroupWithCreateGroupOption:completion:

    创建群

    - (void)creatGroupWithCreateGroupOption:(BMXCreatGroupOption *) _option_ completion:(void ( ^ ) ( BMXGroup *group , BMXError *error )) _aCompletionBlock_

    Parameters

    option BMXCreatGroupOption
    aCompletionBlock Group info ,Error

    Discussion

    创建群

    Declared In

    BMXGroupManager.h

    - destroyGroup:completion:

    销毁群(群主权限)

    - (void)destroyGroup:(BMXGroup *) _group_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Parameters

    group BMXGroup
    aCompletionBlock Error

    Discussion

    销毁群(群主权限)

    Declared In

    BMXGroupManager.h

    - joinGroup:message:completion:

    加入一个群,根据群设置可能需要管理员批准

    - (void)joinGroup:(BMXGroup *) _group_ message:(NSString *) _message_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Parameters

    group BMXGroup
    message 申请信息
    aCompletionBlock Error

    Discussion

    加入一个群,根据群设置可能需要管理员批准

    Declared In

    BMXGroupManager.h

    - leaveGroup:completion:

    退出群

    - (void)leaveGroup:(BMXGroup *) _group_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Parameters

    group BMXGroup
    aCompletionBlock Error

    Discussion

    退出群

    Declared In

    BMXGroupManager.h

    - loadGroupInfo:completion:

    获取群详情,从服务端拉取最新信息

    - (void)loadGroupInfo:(BMXGroup *) _group_ completion:(void ( ^ ) ( BMXGroup *group , BMXError *error )) _aCompletionBlock_

    Parameters

    group BMXGroup
    aCompletionBlock BMXGroup,BMXError

    Discussion

    获取群详情,从服务端拉取最新信息

    Declared In

    BMXGroupManager.h

    - getMembersNickName:memberIdlist:completion:

    批量获取群组成员昵称

    - (void)getMembersNickName:(BMXGroup *) _group_ memberIdlist:(NSArray<NSNumber*> *) _memberIdlist_ completion:(void ( ^ ) ( NSArray *aGroupMembers , BMXError *aError )) _aCompletionBlock_

    Discussion

    批量获取群组成员昵称

    Declared In

    BMXGroupManager.h

    - getInvitationListByCursor:pageSize:completion:

    分页获取群组邀请列表

    - (void)getInvitationListByCursor:(NSString *) _cursor_ pageSize:(int) _pageSize_ completion:(void ( ^ ) ( NSArray *invitationList , NSString *cursor , long long offset , BMXError *error )) _aCompletionBlock_

    Parameters

    cursor string
    pageSize int
    aCompletionBlock NSArray *invitationList,

    Discussion

    分页获取群组邀请列表

    Declared In

    BMXGroupManager.h

    - getApplicationListByCursor:pageSize:completion:

    分页获取群组申请列表

    - (void)getApplicationListByCursor:(NSString *) _cursor_ pageSize:(int) _pageSize_ completion:(void ( ^ ) ( NSArray *applicationList , NSString *cursor , long long offset , BMXError *error )) _aCompletionBlock_

    Discussion

    分页获取群组申请列表

    Declared In

    BMXGroupManager.h

    - getMemberList:cursor:pageSize:completion:

    分页获取群成员列表

    - (void)getMemberList:(BMXGroup *) _group_ cursor:(NSString *) _cursor_ pageSize:(int) _pageSize_ completion:(void ( ^ ) ( NSArray *memberList , NSString *cursor , long long offset , BMXError *error )) _aCompletionBlock_

    Parameters

    group BMXGroup
    cursor String
    pageSize int
    aCompletionBlock NSArray *memberList,

    Discussion

    分页获取群成员列表

    Declared In

    BMXGroupManager.h

    - getMembers:forceRefresh:completion:

    获取群成员列表,

    - (void)getMembers:(BMXGroup *) _group_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( NSArray<BMXGroupMember*> *groupList , BMXError *error )) _aCompletionBlock_

    Parameters

    group BMXGroup
    forceRefresh 如果设置了forceRefresh则从服务器拉取,最多拉取1000人
    aCompletionBlock List:BMXGroupMember ,BMXError

    Discussion

    获取群成员列表,

    Declared In

    BMXGroupManager.h

    - addMembersToGroup:memberIdlist:message:completion:

    添加群成员

    - (void)addMembersToGroup:(BMXGroup *) _group_ memberIdlist:(NSArray<NSNumber*> *) _memberIdlist_ message:(NSString *) _message_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Parameters

    group BMXGroup
    memberIdlist id数组
    message 添加信息
    aCompletionBlock BMXError

    Discussion

    添加群成员

    Declared In

    BMXGroupManager.h

    - removeMembersWithGroup:memberlist:reason:completion:

    删除群成员

    - (void)removeMembersWithGroup:(BMXGroup *) _group_ memberlist:(NSArray<NSNumber*> *) _memberList_ reason:(NSString *) _reason_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Parameters

    group BMXGroup
    memberList memberlist
    reason reason
    aCompletionBlock BMXError

    Discussion

    删除群成员

    Declared In

    BMXGroupManager.h

    - addAdmins:admins:message:completion:

    添加管理员

    - (void)addAdmins:(BMXGroup *) _group_ admins:(NSArray<NSNumber*> *) _admins_ message:(NSString *) _message_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Parameters

    group BMXGroup
    admins Array:id
    message String
    aCompletionBlock BMXError

    Discussion

    添加管理员

    Declared In

    BMXGroupManager.h

    - removeAdmins:admins:reason:completion:

    删除管理员

    - (void)removeAdmins:(BMXGroup *) _group_ admins:(NSArray<NSNumber*> *) _admins_ reason:(NSString *) _reason_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Parameters

    group BMXGroup
    admins Array:id
    reason String
    aCompletionBlock BMXError

    Discussion

    删除管理员

    Declared In

    BMXGroupManager.h

    - getAdmins:forceRefresh:completion:

    获取Admins列表,如果设置了forceRefresh则从服务器拉取

    - (void)getAdmins:(BMXGroup *) _group_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( NSArray<BMXGroupMember*> *, BMXError *error )) _aCompletionBlock_

    Discussion

    获取Admins列表,如果设置了forceRefresh则从服务器拉取

    Declared In

    BMXGroupManager.h

    - blockMembers:members:completion:

    添加黑名单

    - (void)blockMembers:(BMXGroup *) _group_ members:(NSArray<NSNumber*> *) _members_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    添加黑名单

    Declared In

    BMXGroupManager.h

    - unblockMember:members:completion:

    从黑名单删除

    - (void)unblockMember:(BMXGroup *) _group_ members:(NSArray<NSNumber*> *) _members_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    从黑名单删除

    Declared In

    BMXGroupManager.h

    - getBlockList:cursor:pageSize:completion:

    分页获取黑名单

    - (void)getBlockList:(BMXGroup *) _group_ cursor:(NSString *) _cursor_ pageSize:(int) _pageSize_ completion:(void ( ^ ) ( NSArray *memberList , NSString *cursor , long long offset , BMXError *error )) _aCompletionBlock_

    Parameters

    cursor string
    pageSize int
    aCompletionBlock NSArray *memberList,

    Discussion

    分页获取黑名单

    Declared In

    BMXGroupManager.h

    - getBlockListByGroup:forceRefresh:completion:

    获取黑名单

    - (void)getBlockListByGroup:(BMXGroup *) _group_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( NSArray<BMXGroupMember*> *, BMXError *error )) _aCompletionBlock_

    Discussion

    获取黑名单

    Declared In

    BMXGroupManager.h

    - banMembers:group:reason:duration:completion:

    禁言

    - (void)banMembers:(NSArray<NSNumber*> *) _members_ group:(BMXGroup *) _group_ reason:(NSString *) _reason_ duration:(long long) _duration_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    禁言

    Declared In

    BMXGroupManager.h

    - unbanMembersByGroup:members:reason:completion:

    解除禁言

    - (void)unbanMembersByGroup:(BMXGroup *) _group_ members:(NSArray<NSNumber*> *) _members_ reason:(NSString *) _reason_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    解除禁言

    Declared In

    BMXGroupManager.h

    - getbannedMemberListGroup:cursor:pageSize:completion:

    分页获取禁言列表

    - (void)getbannedMemberListGroup:(BMXGroup *) _group_ cursor:(NSString *) _cursor_ pageSize:(int) _pageSize_ completion:(void ( ^ ) ( NSArray *memberList , NSString *cursor , long long offset , BMXError *error )) _aCompletionBlock_

    Parameters

    cursor string
    pageSize int
    aCompletionBlock NSArray *memberList

    Discussion

    分页获取禁言列表

    Declared In

    BMXGroupManager.h

    - getBannedMembersByGroup:completion:

    获取禁言列表

    - (void)getBannedMembersByGroup:(BMXGroup *) _group_ completion:(void ( ^ ) ( NSArray<BMXGroupBannedMember*> *bannedMemberList , BMXError *error )) _aCompletionBlock_

    Discussion

    获取禁言列表

    Declared In

    BMXGroupManager.h

    - muteMessageByGroup:msgMuteMode:completion:

    屏蔽群消息

    - (void)muteMessageByGroup:(BMXGroup *) _group_ msgMuteMode:(BMXGroupMsgMuteMode) _msgMuteMode_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    屏蔽群消息

    Declared In

    BMXGroupManager.h

    - acceptApplicationByGroup:applicantId:completion:

    接受入群申请

    - (void)acceptApplicationByGroup:(BMXGroup *) _group_ applicantId:(long long) _applicantId_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    接受入群申请

    Declared In

    BMXGroupManager.h

    - declineApplicationByGroup:applicantId:completion:

    拒绝入群申请

    - (void)declineApplicationByGroup:(BMXGroup *) _group_ applicantId:(long long) _applicantId_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    拒绝入群申请

    Declared In

    BMXGroupManager.h

    - acceptInvitationByGroup:inviter:completion:

    接受入群邀请

    - (void)acceptInvitationByGroup:(BMXGroup *) _group_ inviter:(long long) _inviter_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    接受入群邀请

    Declared In

    BMXGroupManager.h

    - declineInvitationByGroup:inviter:completion:

    拒绝入群邀请

    - (void)declineInvitationByGroup:(BMXGroup *) _group_ inviter:(long long) _inviter_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    拒绝入群邀请

    Declared In

    BMXGroupManager.h

    - transferOwnerByGroup:newOwnerId:completion:

    转移群主

    - (void)transferOwnerByGroup:(BMXGroup *) _group_ newOwnerId:(long long) _newOwnerId_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    转移群主

    Declared In

    BMXGroupManager.h

    `-

    uploadSharedFileToGroup:filePathStr:displayName:extionName:progress:completion:`

    添加群共享文件

    - (void)uploadSharedFileToGroup:(BMXGroup *) _group_ filePathStr:(NSString *) _filePathStr_ displayName:(NSString *) _displayName_ extionName:(NSString *) _extionName_ progress:(void ( ^ ) ( int progress , BMXError *error )) _aProgress_ completion:(void ( ^ ) ( BMXGroup *resultGroup , BMXError *error )) _aCompletion_

    Discussion

    添加群共享文件

    Declared In

    BMXGroupManager.h

    - removeSharedFileFromGroup:file:completion:

    移除群共享文件

    - (void)removeSharedFileFromGroup:(BMXGroup *) _group_ file:(BMXGroupSharedFile *) _file_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    移除群共享文件

    Declared In

    BMXGroupManager.h

    - downloadSharedFileFromGroup:shareFile:progress:completion:

    下载群共享文件

    - (void)downloadSharedFileFromGroup:(BMXGroup *) _group_ shareFile:(BMXGroupSharedFile *) _shareFile_ progress:(void ( ^ ) ( int progress , BMXError *error )) _aProgress_ completion:(void ( ^ ) ( BMXGroup *resultGroup , BMXError *error )) _aCompletion_

    Discussion

    下载群共享文件

    Declared In

    BMXGroupManager.h

    - getSharedFilesListByGroup:forceRefresh:completion:

    获取群共享文件列表

    - (void)getSharedFilesListByGroup:(BMXGroup *) _group_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( NSArray<BMXGroupSharedFile*> *sharedFileList , BMXError *error )) _aCompletionBlock_

    Discussion

    获取群共享文件列表

    Declared In

    BMXGroupManager.h

    - getLatestAnnouncementWithGroup:forceRefresh:completion:

    获取最新的群公告

    - (void)getLatestAnnouncementWithGroup:(BMXGroup *) _group_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( BMXGroupAnnounment *groupAnnounment , BMXError *error )) _aCompletionBlock_

    Discussion

    获取最新的群公告

    Declared In

    BMXGroupManager.h

    - getAnnouncementListWithGroup:forceRefresh:completion:

    获取群公告列表

    - (void)getAnnouncementListWithGroup:(BMXGroup *) _group_ forceRefresh:(BOOL) _forceRefresh_ completion:(void ( ^ ) ( NSArray *annoucmentArray , BMXError *error )) _aCompletionBlock_

    Discussion

    获取群公告列表

    Declared In

    BMXGroupManager.h

    - editGroupAnnouncement:title:content:completion:

    设置群公告

    - (void)editGroupAnnouncement:(BMXGroup *) _group_ title:(NSString *) _title_ content:(NSString *) _content_ completion:(void ( ^ ) ( BMXGroup *group , BMXError *error )) _aCompletionBlock_

    Discussion

    设置群公告

    Declared In

    BMXGroupManager.h

    - deleteAnnouncementWithGroup:announcementId:completion:

    删除群公告

    - (void)deleteAnnouncementWithGroup:(BMXGroup *) _group_ announcementId:(long long) _announcementId_ completion:(void ( ^ ) ( BMXGroup *group , BMXError *error )) _aCompletionBlock_

    Discussion

    删除群公告

    Declared In

    BMXGroupManager.h

    - setGroupName:name:completion:

    设置群名称

    - (void)setGroupName:(BMXGroup *) _group_ name:(NSString *) _name_ completion:(void ( ^ ) ( BMXGroup *group , BMXError *error )) _aCompletionBlock_

    Discussion

    设置群名称

    Declared In

    BMXGroupManager.h

    - setGroupDescription:description:completion:

    设置群描述信息

    - (void)setGroupDescription:(BMXGroup *) _group_ description:(NSString *) _description_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    设置群描述信息

    Declared In

    BMXGroupManager.h

    - setGroupExtensionWithGroup:extension:completion:

    设置群扩展信息

    - (void)setGroupExtensionWithGroup:(BMXGroup *) _group_ extension:(NSString *) _extension_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    设置群扩展信息

    Declared In

    BMXGroupManager.h

    - setMyNicknameWithGroup:nickName:completion:

    设置在群里的昵称

    - (void)setMyNicknameWithGroup:(BMXGroup *) _group_ nickName:(NSString *) _nickName_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    设置在群里的昵称

    Declared In

    BMXGroupManager.h

    - setMsgPushModeWithGroup:mode:completion:

    设置群消息通知模式

    - (void)setMsgPushModeWithGroup:(BMXGroup *) _group_ mode:(BMXGroupMsgPushMode) _mode_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    设置群消息通知模式

    Declared In

    BMXGroupManager.h

    - setJoinAuthModeWithGroup:joinAuthMode:completion:

    设置入群审批模式

    - (void)setJoinAuthModeWithGroup:(BMXGroup *) _group_ joinAuthMode:(BMXGroupJoinAuthMode) _mode_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    设置入群审批模式

    Declared In

    BMXGroupManager.h

    - setInviteModeWithGroup:mode:completion:

    设置邀请模式

    - (void)setInviteModeWithGroup:(BMXGroup *) _group_ mode:(BMXGroupInviteMode) _inviteMode_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Discussion

    设置邀请模式

    Declared In

    BMXGroupManager.h

    - setAllowMemberModifyWithGroup:enable:completion:

    设置是否允许群成员设置群信息

    - (void)setAllowMemberModifyWithGroup:(BMXGroup *) _group_ enable:(BOOL) _enable_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Parameters

    group 进行操作的群组
    enable 是否允许操作
    aCompletionBlock BMXError

    Discussion

    设置是否允许群成员设置群信息

    Declared In

    BMXGroupManager.h

    - setEnableReadAckWithGroup:enable:completion:

    设置是否开启群消息已读功能

    - (void)setEnableReadAckWithGroup:(BMXGroup *) _group_ enable:(BOOL) _enable_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Parameters

    group 进行操作的群组
    enable 是否开启
    aCompletionBlock BMXError

    Discussion

    设置是否开启群消息已读功能

    Declared In

    BMXGroupManager.h

    - setHistoryVisibleWithGroup:enable:completion:

    设置群成员是否开可见群历史聊天记录

    - (void)setHistoryVisibleWithGroup:(BMXGroup *) _group_ enable:(BOOL) _enable_ completion:(void ( ^ ) ( BMXError *error )) _aCompletionBlock_

    Parameters

    group 进行操作的群组
    enable 是否开启
    aCompletionBlock BMXError

    Discussion

    设置群成员是否开可见群历史聊天记录

    Declared In

    BMXGroupManager.h

    - setAvatarWithGroup:avatarData:progress:completion:

    设置群头像

    - (void)setAvatarWithGroup:(BMXGroup *) _group_ avatarData:(NSData *) _avatarData_ progress:(void ( ^ ) ( int progress , BMXError *error )) _aProgress_ completion:(void ( ^ ) ( BMXGroup *resultGroup , BMXError *error )) _aCompletion_

    Discussion

    设置群头像

    Declared In

    BMXGroupManager.h

    - downloadAvatarWithGroup:progress:completion:

    下载群头像

    - (void)downloadAvatarWithGroup:(BMXGroup *) _group_ progress:(void ( ^ ) ( int progress , BMXError *error )) _aProgress_ completion:(void ( ^ ) ( BMXGroup *resultGroup , BMXError *error )) _aCompletion_

    Discussion

    下载群头像

    Declared In

    BMXGroupManager.h

    - addGroupListener:

    添加群组变化监听者

    - (void)addGroupListener:(id<BMXGroupServiceProtocol>) _listener_

    Discussion

    添加群组变化监听者

    Declared In

    BMXGroupManager.h

    - removeGroupListener:

    移除群组变化监听者

    - (void)removeGroupListener:(id<BMXGroupServiceProtocol>) _listener_

    Discussion

    移除群组变化监听者

    Declared In

    BMXGroupManager.h

    以上内容是否对您有帮助?
  • Qvm free helper
    Close