NIM Unity SDK  V2.4.2
静态 Public 成员函数 | 静态 Public 属性 | 所有成员列表
NIM.Team.TeamAPI类 参考

静态 Public 成员函数

static void RegisterCallbacks ()
 
static void CreateTeam (NIMTeamInfo teamInfo, string[] idList, string postscript, TeamChangedNotificationDelegate action)
 创建群 更多...
 
static void Invite (string tid, string[] idList, string postscript, TeamChangedNotificationDelegate action)
 邀请好友入群 更多...
 
static void KickMemberOutFromTeam (string tid, string[] idList, TeamChangedNotificationDelegate action)
 将用户踢下线 更多...
 
static void LeaveTeam (string tid, TeamChangedNotificationDelegate action)
 离开群 更多...
 
static void DismissTeam (string tid, TeamChangedNotificationDelegate action)
 解散群组 更多...
 
static void UpdateTeamInfo (string tid, NIMTeamInfo info, TeamChangedNotificationDelegate action)
 更新群信息 更多...
 
static void ApplyForJoiningTeam (string tid, string reason, TeamChangedNotificationDelegate action)
 申请入群 更多...
 
static void AgreeJoinTeamApplication (string tid, string uid, TeamChangedNotificationDelegate action)
 同意入群申请 更多...
 
static void RejectJoinTeamApplication (string tid, string uid, string reason, TeamChangedNotificationDelegate action)
 拒绝入群申请 更多...
 
static void AddTeamManagers (string tid, string[] managerIdArray, TeamChangedNotificationDelegate action)
 添加群管理员 更多...
 
static void RemoveTeamManagers (string tid, string[] managerIdArray, TeamChangedNotificationDelegate action)
 删除群管理员 更多...
 
static void TransferTeamAdmin (string tid, string newOwnerId, bool leaveTeam, TeamChangedNotificationDelegate action)
 移交群主 更多...
 
static void UpdateMyTeamProperty (NIMTeamMemberInfo info, TeamChangedNotificationDelegate action)
 更新自己的群属性 更多...
 
static void UpdateMemberNickName (NIMTeamMemberInfo info, TeamChangedNotificationDelegate action)
 修改其他成员的群昵称 更多...
 
static void AcceptTeamInvitation (string tid, string invitor, TeamChangedNotificationDelegate action)
 接受入群邀请 更多...
 
static void RejectTeamInvitation (string tid, string invitor, string reason, TeamChangedNotificationDelegate action)
 拒绝入群邀请 更多...
 
static void QueryAllMyTeams (QueryMyTeamsResultDelegate action)
 查询自己的群 更多...
 
static void QueryMyValidTeamsInfo (QueryMyTeamsInfoResultDelegate action)
 查询所有有效群信息 更多...
 
static void QueryAllMyTeamsInfo (QueryMyTeamsInfoResultDelegate action)
 查询所有群信息,包含无效的群 更多...
 
static void QueryTeamMembersInfo (string tid, QueryTeamMembersInfoResultDelegate action)
 查询群成员信息 更多...
 
static void QueryTeamMembersInfo (string tid, bool includeMemberInfo, bool includeInvalidMember, QueryTeamMembersInfoResultDelegate action)
 查询群成员信息 更多...
 
static void QuerySingleMemberInfo (string tid, string uid, QuerySingleMemberResultDelegate action)
 查询(单个)群成员信息 更多...
 
static NIMTeamMemberInfo QuerySingleMemberInfo (string tid, string uid)
 查询(单个)群成员信息(同步版本,堵塞NIM内部线程,谨慎使用) 更多...
 
static void QueryCachedTeamInfo (string tid, QueryCachedTeamInfoResultDelegate action)
 查询本地缓存的群信息 更多...
 
static void QueryTeamInfoOnline (string tid, TeamChangedNotificationDelegate action)
 在线查询群信息 更多...
 
static void SetMemberMuted (string tid, string memberId, bool muted, TeamChangedNotificationDelegate action)
 
static NIMTeamInfo QueryCachedTeamInfo (string tid)
 本地查询群信息(同步版本,堵塞NIM内部线程,谨慎使用) 更多...
 
static void QueryMutedListOnlineAsync (string tid, QueryTeamMutedListDelegate cb)
 获取群禁言成员列表 更多...
 

静态 Public 属性

static EventHandler< NIMTeamEventArgsTeamEventNotificationHandler
 群通知事件,注册该事件监听群信息变更 更多...
 

成员函数说明

◆ CreateTeam()

static void NIM.Team.TeamAPI.CreateTeam ( NIMTeamInfo  teamInfo,
string[]  idList,
string  postscript,
TeamChangedNotificationDelegate  action 
)
inlinestatic

创建群

参数
teamInfo群组信息
idList成员id列表(不包括自己)
postscript附言
action

◆ Invite()

static void NIM.Team.TeamAPI.Invite ( string  tid,
string[]  idList,
string  postscript,
TeamChangedNotificationDelegate  action 
)
inlinestatic

邀请好友入群

参数
tid群id
idList被邀请人员id列表
postscript邀请附言
action操作结果回调

◆ KickMemberOutFromTeam()

static void NIM.Team.TeamAPI.KickMemberOutFromTeam ( string  tid,
string[]  idList,
TeamChangedNotificationDelegate  action 
)
inlinestatic

将用户踢下线

参数
tid群id
idList被踢用户id 列表
action

◆ LeaveTeam()

static void NIM.Team.TeamAPI.LeaveTeam ( string  tid,
TeamChangedNotificationDelegate  action 
)
inlinestatic

离开群

参数
tid群id
action操作结果回调函数

◆ DismissTeam()

static void NIM.Team.TeamAPI.DismissTeam ( string  tid,
TeamChangedNotificationDelegate  action 
)
inlinestatic

解散群组

参数
tid群id
action操作结果回调函数

◆ UpdateTeamInfo()

static void NIM.Team.TeamAPI.UpdateTeamInfo ( string  tid,
NIMTeamInfo  info,
TeamChangedNotificationDelegate  action 
)
inlinestatic

更新群信息

参数
tid
info
action

◆ ApplyForJoiningTeam()

static void NIM.Team.TeamAPI.ApplyForJoiningTeam ( string  tid,
string  reason,
TeamChangedNotificationDelegate  action 
)
inlinestatic

申请入群

参数
tid
reason
action

◆ AgreeJoinTeamApplication()

static void NIM.Team.TeamAPI.AgreeJoinTeamApplication ( string  tid,
string  uid,
TeamChangedNotificationDelegate  action 
)
inlinestatic

同意入群申请

参数
tid
uid
action

◆ RejectJoinTeamApplication()

static void NIM.Team.TeamAPI.RejectJoinTeamApplication ( string  tid,
string  uid,
string  reason,
TeamChangedNotificationDelegate  action 
)
inlinestatic

拒绝入群申请

参数
tid
uid
reason
action

◆ AddTeamManagers()

static void NIM.Team.TeamAPI.AddTeamManagers ( string  tid,
string[]  managerIdArray,
TeamChangedNotificationDelegate  action 
)
inlinestatic

添加群管理员

参数
tid
managerIdArray
action

◆ RemoveTeamManagers()

static void NIM.Team.TeamAPI.RemoveTeamManagers ( string  tid,
string[]  managerIdArray,
TeamChangedNotificationDelegate  action 
)
inlinestatic

删除群管理员

参数
tid
managerIdArray
action

◆ TransferTeamAdmin()

static void NIM.Team.TeamAPI.TransferTeamAdmin ( string  tid,
string  newOwnerId,
bool  leaveTeam,
TeamChangedNotificationDelegate  action 
)
inlinestatic

移交群主

参数
tid
newOwnerId
leaveTeam是否在移交后退出群
action

◆ UpdateMyTeamProperty()

static void NIM.Team.TeamAPI.UpdateMyTeamProperty ( NIMTeamMemberInfo  info,
TeamChangedNotificationDelegate  action 
)
inlinestatic

更新自己的群属性

参数
info
action

◆ UpdateMemberNickName()

static void NIM.Team.TeamAPI.UpdateMemberNickName ( NIMTeamMemberInfo  info,
TeamChangedNotificationDelegate  action 
)
inlinestatic

修改其他成员的群昵称

参数
info
action

◆ AcceptTeamInvitation()

static void NIM.Team.TeamAPI.AcceptTeamInvitation ( string  tid,
string  invitor,
TeamChangedNotificationDelegate  action 
)
inlinestatic

接受入群邀请

参数
tid
invitor
action

◆ RejectTeamInvitation()

static void NIM.Team.TeamAPI.RejectTeamInvitation ( string  tid,
string  invitor,
string  reason,
TeamChangedNotificationDelegate  action 
)
inlinestatic

拒绝入群邀请

参数
tid
invitor
reason
action

◆ QueryAllMyTeams()

static void NIM.Team.TeamAPI.QueryAllMyTeams ( QueryMyTeamsResultDelegate  action)
inlinestatic

查询自己的群

参数
action

◆ QueryMyValidTeamsInfo()

static void NIM.Team.TeamAPI.QueryMyValidTeamsInfo ( QueryMyTeamsInfoResultDelegate  action)
inlinestatic

查询所有有效群信息

参数
action

◆ QueryAllMyTeamsInfo()

static void NIM.Team.TeamAPI.QueryAllMyTeamsInfo ( QueryMyTeamsInfoResultDelegate  action)
inlinestatic

查询所有群信息,包含无效的群

参数
action

◆ QueryTeamMembersInfo() [1/2]

static void NIM.Team.TeamAPI.QueryTeamMembersInfo ( string  tid,
QueryTeamMembersInfoResultDelegate  action 
)
inlinestatic

查询群成员信息

参数
tid群ID
action

◆ QueryTeamMembersInfo() [2/2]

static void NIM.Team.TeamAPI.QueryTeamMembersInfo ( string  tid,
bool  includeMemberInfo,
bool  includeInvalidMember,
QueryTeamMembersInfoResultDelegate  action 
)
inlinestatic

查询群成员信息

参数
tid群ID
includeMemberInfo是否查询成员详细信息
includeInvalidMember是否包含无效成员
action

◆ QuerySingleMemberInfo() [1/2]

static void NIM.Team.TeamAPI.QuerySingleMemberInfo ( string  tid,
string  uid,
QuerySingleMemberResultDelegate  action 
)
inlinestatic

查询(单个)群成员信息

参数
tid
uid
action

◆ QuerySingleMemberInfo() [2/2]

static NIMTeamMemberInfo NIM.Team.TeamAPI.QuerySingleMemberInfo ( string  tid,
string  uid 
)
inlinestatic

查询(单个)群成员信息(同步版本,堵塞NIM内部线程,谨慎使用)

参数
tid
uid
返回

◆ QueryCachedTeamInfo() [1/2]

static void NIM.Team.TeamAPI.QueryCachedTeamInfo ( string  tid,
QueryCachedTeamInfoResultDelegate  action 
)
inlinestatic

查询本地缓存的群信息

参数
tid
action

◆ QueryTeamInfoOnline()

static void NIM.Team.TeamAPI.QueryTeamInfoOnline ( string  tid,
TeamChangedNotificationDelegate  action 
)
inlinestatic

在线查询群信息

参数
tid
action

◆ QueryCachedTeamInfo() [2/2]

static NIMTeamInfo NIM.Team.TeamAPI.QueryCachedTeamInfo ( string  tid)
inlinestatic

本地查询群信息(同步版本,堵塞NIM内部线程,谨慎使用)

参数
tid
返回

◆ QueryMutedListOnlineAsync()

static void NIM.Team.TeamAPI.QueryMutedListOnlineAsync ( string  tid,
QueryTeamMutedListDelegate  cb 
)
inlinestatic

获取群禁言成员列表

参数
tid群组id
cb回调函数

类成员变量说明

◆ TeamEventNotificationHandler

EventHandler<NIMTeamEventArgs> NIM.Team.TeamAPI.TeamEventNotificationHandler
static

群通知事件,注册该事件监听群信息变更


该类的文档由以下文件生成: