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