#import <NIMSuperTeamManagerProtocol.h>
◆ acceptInviteWithTeam:invitorId:completion:
- (void) acceptInviteWithTeam: |
|
(NSString *) |
teamId |
invitorId: |
|
(NSString *) |
invitorId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
接受入群邀请
- 参数
-
teamId | 群组ID |
invitorId | 邀请者ID |
completion | 完成后的回调 |
◆ addDelegate:
◆ addManagersToTeam:users:completion:
- (void) addManagersToTeam: |
|
(NSString *) |
teamId |
users: |
|
(NSArray< NSString * > *) |
users |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
添加管理员
- 参数
-
teamId | 群组ID |
users | 需要添加为管理员的用户ID列表 |
completion | 完成后的回调 |
◆ addTeamMembersFollow:accoutIds:completion:
- (void) addTeamMembersFollow: |
|
(NSString *) |
teamId |
accoutIds: |
|
(NSArray< NSString * > *) |
accoutIds |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
群成员添加特别关注
- 参数
-
teamId | 群组ID |
accoutIds | 群成员id |
completion | 完成后的回调 |
◆ addUsers:toTeam:postscript:attach:completion:
- (void) addUsers: |
|
(NSArray< NSString * > *) |
users |
toTeam: |
|
(NSString *) |
teamId |
postscript: |
|
(nullable NSString *) |
postscript |
attach: |
|
(nullable NSString *) |
attach |
completion: |
|
(nullable NIMTeamMemberHandler) |
completion |
|
|
| |
邀请用户入群
- 参数
-
users | 用户ID列表 |
teamId | 群组ID |
completion | 完成后的回调 @discussion 群主和管理员可以邀请用户 |
◆ allMyTeams
- (nullable NSArray< NIMTeam * > *) allMyTeams |
|
|
|
◆ applyToTeam:message:completion:
- (void) applyToTeam: |
|
(NSString *) |
teamId |
message: |
|
(NSString *) |
message |
completion: |
|
(nullable NIMTeamApplyHandler) |
completion |
|
|
| |
群申请
- 参数
-
teamId | 群组ID |
message | 申请消息 |
completion | 完成后的回调 |
◆ fetchTeamInfo:completion:
获取群信息
- 参数
-
teamId | 群组ID |
completion | 完成后的回调 |
◆ fetchTeamMembers:option:completion:
获取超大群组成员
- 参数
-
teamId | 群组ID |
completion | 完成后的回调 @discussion 绝大多数情况这个请求都是从本地读取缓存并同步返回,但是由于群成员信息量较大, SDK 采取的是登录后延迟拉取的策略 考虑到用户网络等问题, SDK 有可能没有及时缓存群成员信息,那么这个请求将是个带网络请求的异步操作(增量请求)。 同时这个接口会去请求本地没有缓存的群用户的资料信息,但不会触发 - (void)onUserInfoChanged: 回调。 |
◆ fetchTeamMutedMembers:completion:
- (void) fetchTeamMutedMembers: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamMemberHandler) |
completion |
|
|
| |
获取群内被禁言的成员列表
- 参数
-
teamId | 群组ID |
completion | 完成后的回调 @discussion 绝大多数情况这个请求都是从本地读取缓存并同步返回,但是由于群成员信息量较大, SDK 采取的是登录后延迟拉取的策略 考虑到用户网络等问题, SDK 有可能没有及时缓存群成员信息,那么这个请求将是个带网络请求的异步操作(增量请求)。 同时这个接口会去请求本地没有缓存的群用户的资料信息,但不会触发 - (void)onUserInfoChanged: 回调。 |
◆ getTeamMemberList:option:completion:
群成员类型查询成员列表
- 参数
-
teamId | 群组ID |
option | 搜索配置 |
completion | 完成后的回调 |
◆ isMyTeam:
- (BOOL) isMyTeam: |
|
(NSString *) |
teamId |
|
根据群组ID判断是否是我所在的群
- 参数
-
- 返回
- 是否在此群组
◆ kickUsers:fromTeam:completion:
- (void) kickUsers: |
|
(NSArray< NSString * > *) |
users |
fromTeam: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
从群组内移除成员
- 参数
-
users | 需要移除的用户ID列表 |
teamId | 群组ID |
completion | 完成后的回调 @discussion 群主和管理员可以移除成员,管理员不能踢群主,不能踢管理员。 |
◆ notifyStateForNewMsg:
◆ passApplyToTeam:userId:completion:
- (void) passApplyToTeam: |
|
(NSString *) |
teamId |
userId: |
|
(NSString *) |
userId |
completion: |
|
(nullable NIMTeamApplyHandler) |
completion |
|
|
| |
通过群申请
- 参数
-
teamId | 群组ID |
userId | 申请的用户ID |
completion | 完成后的回调 |
◆ quitTeam:completion:
- (void) quitTeam: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
退出群组
- 参数
-
teamId | 群组ID |
completion | 完成后的回调 |
◆ rejectApplyToTeam:userId:rejectReason:completion:
- (void) rejectApplyToTeam: |
|
(NSString *) |
teamId |
userId: |
|
(NSString *) |
userId |
rejectReason: |
|
(NSString *) |
rejectReason |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
拒绝群申请
- 参数
-
teamId | 群组ID |
userId | 申请的用户ID |
rejectReason | 拒绝理由 |
completion | 完成后的回调 |
◆ rejectInviteWithTeam:invitorId:rejectReason:completion:
- (void) rejectInviteWithTeam: |
|
(NSString *) |
teamId |
invitorId: |
|
(NSString *) |
invitorId |
rejectReason: |
|
(NSString *) |
rejectReason |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
拒绝入群邀请
- 参数
-
teamId | 群组ID |
invitorId | 邀请者ID |
rejectReason | 拒绝原因 |
completion | 完成后的回调 |
◆ removeDelegate:
◆ removeManagersFromTeam:users:completion:
- (void) removeManagersFromTeam: |
|
(NSString *) |
teamId |
users: |
|
(NSArray< NSString * > *) |
users |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
移除管理员
- 参数
-
teamId | 群组ID |
users | 需要移除管理员的用户ID列表 |
completion | 完成后的回调 |
◆ removeTeamMembersFollow:accoutIds:completion:
- (void) removeTeamMembersFollow: |
|
(NSString *) |
teamId |
accoutIds: |
|
(NSArray< NSString * > *) |
accoutIds |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
群成员移除特别关注
- 参数
-
teamId | 群组ID |
accoutIds | 群成员id |
completion | 完成后的回调 |
◆ teamById:
- (nullable NIMTeam *) teamById: |
|
(NSString *) |
teamId |
|
根据群组 ID 获取具体的群组信息
- 参数
-
- 返回
- 群组信息 @discussion 如果自己不在群里,则该接口返回 nil
◆ teamMember:inTeam:
- (nullable NIMTeamMember *) teamMember: |
|
(NSString *) |
userId |
inTeam: |
|
(NSString *) |
teamId |
|
|
| |
获取单个群成员信息
- 参数
-
- 返回
- 返回成员信息 @discussion 返回本地缓存的群成员信息,如果本地没有相应数据则返回 nil。
◆ transferManagerWithTeam:newOwnerId:isLeave:completion:
- (void) transferManagerWithTeam: |
|
(NSString *) |
teamId |
newOwnerId: |
|
(NSString *) |
newOwnerId |
isLeave: |
|
(BOOL) |
isLeave |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
移交群主
- 参数
-
teamId | 群组ID |
newOwnerId | 新群主ID |
isLeave | 是否同时离开群组 |
completion | 完成后的回调 |
◆ updateMuteState:inTeam:completion:
- (void) updateMuteState: |
|
(BOOL) |
mute |
inTeam: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
禁言群全体成员
- 参数
-
mute | 是否禁言 |
teamId | 群组ID |
completion | 经验操作完成后的回调 @discussion 操作成功后,云信服务器会下发禁言的群通知消息 |
◆ updateMuteState:userIds:inTeam:completion:
- (void) updateMuteState: |
|
(BOOL) |
mute |
userIds: |
|
(NSArray< NSString * > *) |
userIds |
inTeam: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
群成员禁言
- 参数
-
mute | 是否禁言 |
userIds | 用户ID |
teamId | 群组ID |
completion | 经验操作完成后的回调 @discussion 操作成功后,云信服务器会下发禁言的群通知消息 |
◆ updateMyCustomInfo:inTeam:completion:
- (void) updateMyCustomInfo: |
|
(NSString *) |
newInfo |
inTeam: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
更新自己群自定义属性
- 参数
-
newInfo | 新的自定义属性 |
teamId | 群组ID |
completion | 完成后的回调 |
◆ updateNotifyState:inTeam:completion:
修改群通知状态
- 参数
-
state | 群通知状态 |
teamId | 群组ID |
completion | 完成后的回调 |
◆ updateTeamAnnouncement:teamId:completion:
- (void) updateTeamAnnouncement: |
|
(NSString *) |
announcement |
teamId: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
更新群公告
- 参数
-
announcement | 群公告 |
teamId | 群组ID |
completion | 完成后的回调 |
◆ updateTeamAvatar:teamId:completion:
- (void) updateTeamAvatar: |
|
(NSString *) |
teamAvatarUrl |
teamId: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
更新群组头像
- 参数
-
teamAvatarUrl | 群组头像Url |
teamId | 群组ID |
completion | 完成后的回调 |
◆ updateTeamBeInviteMode:teamId:completion:
更新群组被邀请人验证方式
- 参数
-
beInviteMode | 邀请方式 |
teamId | 群组ID |
completion | 完成后的回调 |
◆ updateTeamCustomInfo:teamId:completion:
- (void) updateTeamCustomInfo: |
|
(NSString *) |
info |
teamId: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
更新群自定义信息
- 参数
-
info | 群自定义信息 |
teamId | 群组ID |
completion | 完成后的回调 |
◆ updateTeamInfos:teamId:completion:
- (void) updateTeamInfos: |
|
(NSDictionary< NSNumber *, NSString * > *) |
values |
teamId: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
更新群信息
- 参数
-
values | 需要更新的群信息键值对 |
teamId | 群组ID |
completion | 完成后的回调 @discussion 这个接口可以一次性修改群的多个属性,如名称,公告等,传入的数据键值对是 {@(NIMSuperTeamUpdateTag) : NSString},无效数据将被过滤.群主和管理员可修改 |
◆ updateTeamIntro:teamId:completion:
- (void) updateTeamIntro: |
|
(NSString *) |
intro |
teamId: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
更新群介绍
- 参数
-
intro | 群介绍 |
teamId | 群组ID |
completion | 完成后的回调 |
◆ updateTeamJoinMode:teamId:completion:
更新群组验证方式
- 参数
-
joinMode | 验证方式 |
teamId | 群组ID |
completion | 完成后的回调 |
◆ updateTeamName:teamId:completion:
- (void) updateTeamName: |
|
(NSString *) |
teamName |
teamId: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
更新群组名称
- 参数
-
teamName | 群组名称 |
teamId | 群组ID |
completion | 完成后的回调 |
◆ updateUserNick:newNick:inTeam:completion:
- (void) updateUserNick: |
|
(NSString *) |
userId |
newNick: |
|
(NSString *) |
newNick |
inTeam: |
|
(NSString *) |
teamId |
completion: |
|
(nullable NIMTeamHandler) |
completion |
|
|
| |
更新成员群昵称
- 参数
-
userId | 群成员ID |
newNick | 新的群成员昵称 |
teamId | 群组ID |
completion | 完成后的回调 |
该协议的文档由以下文件生成: