NIMSDK-iOS
载入中...
搜索中...
未找到
NIMTeamDefs.h 文件参考

浏览源代码.

类型定义

typedef void(^ NIMTeamHandler) (NSError *__nullable error)
 
typedef void(^ NIMTeamCreateHandler) (NSError *__nullable error, NSString *__nullable teamId, NSArray< NSString * > *__nullable failedUserIds)
 
typedef void(^ NIMTeamSearchHandler) (NSError *__nullable error, NSArray< NIMTeam * > *__nullable teams)
 
typedef void(^ NIMTeamMemberHandler) (NSError *__nullable error, NSArray< NIMTeamMember * > *__nullable members)
 
typedef void(^ NIMTeamFetchInfoHandler) (NSError *__nullable error, NIMTeam *__nullable team)
 
typedef void(^ NIMTeamApplyHandler) (NSError *__nullable error, NIMTeamApplyStatus applyStatus)
 
typedef void(^ NIMTeamFetchInviterAccidsHandler) (NSError *__nullable error, NSDictionary< NSString *, NSString * > *__nullable inviters)
 
typedef void(^ NIMTeamFetchTeamsHandler) (NSError *__nullable error, NSArray< NIMTeam * > *__nullable teams)
 
typedef void(^ NIMTeamFetchTeamInfoListHandler) (NSError *__nullable error, NSArray< NIMTeam * > *__nullable teams, NSArray< NSString * > *__nullable failedTeamIds)
 

枚举

enum  NIMTeamType { NIMTeamTypeNormal = 0 , NIMTeamTypeAdvanced = 1 , NIMTeamTypeSuper = 2 }
 
enum  NIMTeamJoinMode { NIMTeamJoinModeNoAuth = 0 , NIMTeamJoinModeNeedAuth = 1 , NIMTeamJoinModeRejectAll = 2 }
 
enum  NIMTeamInviteMode { NIMTeamInviteModeManager = 0 , NIMTeamInviteModeAll = 1 }
 
enum  NIMTeamBeInviteMode { NIMTeamBeInviteModeNeedAuth = 0 , NIMTeamBeInviteModeNoAuth = 1 }
 
enum  NIMTeamUpdateInfoMode { NIMTeamUpdateInfoModeManager = 0 , NIMTeamUpdateInfoModeAll = 1 }
 
enum  NIMTeamUpdateClientCustomMode { NIMTeamUpdateClientCustomModeManager = 0 , NIMTeamUpdateClientCustomModeAll = 1 }
 
enum  NIMTeamApplyStatus { NIMTeamApplyStatusInvalid , NIMTeamApplyStatusAlreadyInTeam , NIMTeamApplyStatusWaitForPass }
 
enum  NIMTeamMemberType { NIMTeamMemberTypeNormal = 0 , NIMTeamMemberTypeOwner = 1 , NIMTeamMemberTypeManager = 2 , NIMTeamMemberTypeApply = 3 }
 
enum  NIMTeamNotifyState { NIMTeamNotifyStateAll = 0 , NIMTeamNotifyStateNone = 1 , NIMTeamNotifyStateOnlyManager = 2 }
 
enum  NIMTeamAllMuteMode { NIMTeamAllMuteModeCancel = 0 , NIMTeamAllMuteModeMuteNormal = 1 , NIMTeamAllMuteModeMuteAll = 3 }
 

类型定义说明

◆ NIMTeamApplyHandler

typedef void(^ NIMTeamApplyHandler) (NSError *__nullable error, NIMTeamApplyStatus applyStatus)

群申请block

参数
error错误,如果成功则error为nil
applyStatus群申请状态

◆ NIMTeamCreateHandler

typedef void(^ NIMTeamCreateHandler) (NSError *__nullable error, NSString *__nullable teamId, NSArray< NSString * > *__nullable failedUserIds)

创建群组block

参数
error错误,如果成功则error为nil
teamId群组ID
failedUserIds邀请失败的群成员ID

◆ NIMTeamFetchInfoHandler

typedef void(^ NIMTeamFetchInfoHandler) (NSError *__nullable error, NIMTeam *__nullable team)

拉取群信息Block

参数
error错误,如果成功则error为nil
team群信息

◆ NIMTeamFetchInviterAccidsHandler

typedef void(^ NIMTeamFetchInviterAccidsHandler) (NSError *__nullable error, NSDictionary< NSString *, NSString * > *__nullable inviters)

邀请人Accids

参数
error错误,如果成功则error为nil
inviters群成员与邀请人关系

◆ NIMTeamFetchTeamInfoListHandler

typedef void(^ NIMTeamFetchTeamInfoListHandler) (NSError *__nullable error, NSArray< NIMTeam * > *__nullable teams, NSArray< NSString * > *__nullable failedTeamIds)

根据群ID列表批量获取群信息block

参数
error错误,如果成功则error为nil
teams获取成功的群组信息列表
failedUserIds获取失败的群ID列表

◆ NIMTeamFetchTeamsHandler

typedef void(^ NIMTeamFetchTeamsHandler) (NSError *__nullable error, NSArray< NIMTeam * > *__nullable teams)

拉取所有群信息Block

参数
error错误,如果成功则error为nil
teams群信息

◆ NIMTeamHandler

typedef void(^ NIMTeamHandler) (NSError *__nullable error)

通用的群组操作block

参数
error错误,如果成功则error为nil

◆ NIMTeamMemberHandler

typedef void(^ NIMTeamMemberHandler) (NSError *__nullable error, NSArray< NIMTeamMember * > *__nullable members)

群成员获取 block

参数
error错误,如果成功则error为nil
members成功的群成员列表,内部为NIMTeamMember

◆ NIMTeamSearchHandler

typedef void(^ NIMTeamSearchHandler) (NSError *__nullable error, NSArray< NIMTeam * > *__nullable teams)

群查询 block

参数
error错误,如果成功则error为nil
teams查询的群信息

枚举类型说明

◆ NIMTeamAllMuteMode

群全体禁言模式

枚举值
NIMTeamAllMuteModeCancel 

取消全员禁言

NIMTeamAllMuteModeMuteNormal 

全员禁言,不包括管理员

NIMTeamAllMuteModeMuteAll 

全员禁言,包括群主和管理员

◆ NIMTeamApplyStatus

申请入群状态

枚举值
NIMTeamApplyStatusInvalid 

无效状态

NIMTeamApplyStatusAlreadyInTeam 

已经在群里

NIMTeamApplyStatusWaitForPass 

申请等待通过

◆ NIMTeamBeInviteMode

被邀请模式

枚举值
NIMTeamBeInviteModeNeedAuth 

需要被邀请方同意

NIMTeamBeInviteModeNoAuth 

不需要被邀请方同意

◆ NIMTeamInviteMode

邀请模式

枚举值
NIMTeamInviteModeManager 

只有管理员/群主可以邀请他人入群

NIMTeamInviteModeAll 

所有人可以邀请其他人入群

◆ NIMTeamJoinMode

群验证方式

枚举值
NIMTeamJoinModeNoAuth 

允许所有人加入

NIMTeamJoinModeNeedAuth 

需要验证

NIMTeamJoinModeRejectAll 

不允许任何人加入

◆ NIMTeamMemberType

群成员类型

枚举值
NIMTeamMemberTypeNormal 

普通群员

NIMTeamMemberTypeOwner 

群拥有者

NIMTeamMemberTypeManager 

群管理员

NIMTeamMemberTypeApply 

申请加入用户

◆ NIMTeamNotifyState

群消息接受状态

枚举值
NIMTeamNotifyStateAll 

接受任何群消息通知

NIMTeamNotifyStateNone 

不接受任何群消息通知

NIMTeamNotifyStateOnlyManager 

只接受管理员的群消息通知(仅高级群支持,超大群不支持)

◆ NIMTeamType

群类型

枚举值
NIMTeamTypeNormal 

普通群

NIMTeamTypeAdvanced 

高级群

NIMTeamTypeSuper 

超大群

◆ NIMTeamUpdateClientCustomMode

修改群客户端自定义字段权限

枚举值
NIMTeamUpdateClientCustomModeManager 

只有管理员/群主可以修改

NIMTeamUpdateClientCustomModeAll 

所有人可以修改

◆ NIMTeamUpdateInfoMode

群信息修改权限

枚举值
NIMTeamUpdateInfoModeManager 

只有管理员/群主可以修改

NIMTeamUpdateInfoModeAll 

所有人可以修改