NIM Unity SDK V2.6.0
载入中...
搜索中...
未找到
| 枚举 | 函数
NimElite 命名空间参考

class  ChatroomCallbackManager
 
class  ChatroomPInvokeManager
 
class  DelegateConverter
 
class  INimChatroomAuthService
 
class  INimChatroomClient
 
class  INimChatroomMemberService
 
interface  INimChatroomMessageBuilder
 
class  INimChatroomMessageService
 
class  INimChatroomQueueService
 
class  INimChatroomService
 
class  INimPassThroughService
 
class  NimCallbackParam
 
class  NimChatroomAnonymousEnterParam
 匿名模式进入聊天室请求参数定义 更多...
 
class  NimChatroomAuthParam
 聊天室鉴权参数 更多...
 
class  NimChatroomAuthService
 
class  NimChatroomBatchUpdateQueueParam
 批量更新聊天室队列元素请求参数定义 更多...
 
class  NimChatroomBatchUpdateQueueResult
 
class  NimChatroomClient
 
class  NimChatroomEnterLocationParam
 聊天室位置信息参数 更多...
 
class  NimChatroomEnterParam
 进入聊天室请求参数 更多...
 
class  NimChatroomEnterResult
 
class  NimChatroomFetchQueueResult
 
class  NimChatroomIndependentEnterParam
 独立模式进入聊天室请求参数定义 更多...
 
class  NimChatroomInfo
 
class  NimChatroomInitQueueParam
 初始化聊天室队列请求参数定义 更多...
 
class  NimChatroomKickMemberParam
 踢出聊天室成员请求参数定义 更多...
 
class  NimChatroomLinkConditionInfo
 
class  NimChatroomLoginState
 聊天室登录状态信息 更多...
 
class  NimChatroomMemberInfo
 
class  NimChatroomMemberService
 
class  NimChatroomMemberTempMuteByTagParam
 根据tag临时禁言聊天室成员 更多...
 
class  NimChatroomMemberTempMuteParam
 临时禁言聊天室成员请求参数 更多...
 
class  NimChatroomMemberUpdateParam
 更新聊天室成员参数定义 更多...
 
class  NimChatroomMessage
 
class  NimChatroomMessageBatchReportInfo
 聊天室消息批量上报设置参数定义 更多...
 
class  NimChatroomMessageBuilderImpl
 
class  NimChatroomMessageService
 
class  NimChatroomMessageSetting
 聊天室消息设置定义 更多...
 
class  NimChatroomNotification
 
class  NimChatroomNotifyKickout
 
class  NimChatroomPickHeaderQueueResult
 
class  NimChatroomPollQueueParam
 聊天室队列元素查询请求参数 更多...
 
class  NimChatroomPollQueueResult
 
class  NimChatroomPullMessageOptions
 拉取聊天室历史消息请求参数定义 更多...
 
class  NimChatroomPullMessageResult
 
class  NimChatroomQueryMemberByAccountsParam
 根据账号查询聊天室成员信息请求参数 更多...
 
class  NimChatroomQueryMemberParam
 查询聊天室成员请求参数定义 更多...
 
class  NimChatRoomQueryMembersByTagParam
 根据tag查询聊天室成员信息请求参数定义 更多...
 
class  NimChatRoomQueryMembersCountByTagParam
 查询某一tag下聊天室成员数量 更多...
 
class  NimChatroomQueryMembersCountResult
 
class  NimChatroomQueryMembersResult
 
class  NimChatroomQueryRoomInfoResult
 
class  NimChatroomQueueItem
 聊天室队列元素定义 更多...
 
class  NimChatroomQueueService
 
class  NimChatroomSdkConfig
 聊天室设置结构体定义 更多...
 
class  NimChatroomSendMessageLocationParam
 聊天室发送消息位置信息参数定义 更多...
 
class  NimChatroomSendMessageParam
 发送聊天室消息参数定义 更多...
 
class  NimChatroomSendMessageResult
 
class  NimChatroomService
 
class  NimChatroomSetMemberTempMuteResult
 
class  NimChatroomUpdateInfoParam
 更新聊天室信息参数定义 更多...
 
class  NimChatroomUpdateLocationParam
 当前账号在聊天室内位置信息参数 更多...
 
class  NimChatroomUpdateMyRoomRoleParam
 更新当前账号在聊天室内的信息请求参数定义 更多...
 
class  NimChatroomUpdateQueueParam
 更新聊天室队列元素请求参数定义 更多...
 
class  NimChatroomUploadAttachmentEndingParam
 
class  NimConstructChatroomMessageSendParamResult
 
class  NimMsgAudioAttachment
 
class  NimMsgCustomAttachment
 
class  NimMsgFileAttachment
 
class  NimMsgGEOAttachment
 
class  NimMsgImageAttachment
 
class  NimMsgTextAttachment
 
class  NimMsgTipAttachment
 
class  NimMsgVideoAttachment
 
class  NimPassThroughHttpData
 
class  NimPassThroughHttpDataResponse
 
class  NimPassThroughMsgData
 
class  NimPassThroughService
 
class  NimSdk
 
class  NimSDKInitializeParam
 
class  NimUtility
 
class  PassThroughCallbackManager
 
class  PassThroughPInvokeManager
 

枚举

enum  NimChatroomMemberType {
  Guest = -2 , LimitedMember = -1 , NormalMember = 0 , Creator = 1 ,
  Admin = 2 , Anonymous = 4
}
 
enum  NimChatroomMemberQueryCondition { Regular = 0 , Temp = 1 , RegularOnline = 2 , UnRegularReversedOrder = 3 }
 
enum  NimChatroomLoginStateType { Unlogin = 1 , Logging = 2 , Logged = 3 }
 
enum  NimChatroomLoginStateDetailType {
  UnloginDisconnected = 101 , UnloginLogout = 102 , UnloginAuthError = 111 , UnloginDeviceNotTrust = 112 ,
  UnloginKickExclusive = 121 , UnloginForbidden = 122 , UnloginKickBySelfOtherClient = 123 , UnloginVersionExpired = 181 ,
  UnloginAuthTimeout = 182 , UnloginUnspecific = 199 , LoggingConnecting = 201 , LoggingAuthing = 202 ,
  LoggedSyncing = 301 , kNIMChatroomLoginStateUnlogin_ManagerKick = 401 , kNIMChatroomLoginStateUnlogin_Dismiss = 402 , LoggedCompleted = 666 ,
  LoggedLoggingOut = 667
}
 
enum  NimChatroomLinkCondition { Alive = 0 , Retry = 1 , Dead = 2 }
 
enum  NimChatroomNotificationId {
  Undefined = 0 , MemberIn = 301 , MemberExit = 302 , AddBlack = 303 ,
  RemoveBlack = 304 , AddMute = 305 , RemoveMute = 306 , AddManager = 307 ,
  RemoveManager = 308 , AddFixed = 309 , RemoveFixed = 310 , Closed = 311 ,
  InfoUpdated = 312 , MemberKicked = 313 , MemberTempMute = 314 , MemberTempUnMute = 315 ,
  MyRoleUpdated = 316 , QueueChanged = 317 , RoomMuted = 318 , RoomDeMuted = 319 ,
  QueueBatchChanged = 320 , TagTempMuteAdd = 321 , TagTempMuteRemove = 322 , RecallMessage = 323 ,
  QueueBatchOffer = 324
}
 
enum  NimChatroomAuthType { kNIMChatroomAuthTypeDefault = 0 , kNIMChatroomAuthTypeDynamicToken = 1 , kNIMChatroomAuthTypeThirdpartyCallback = 2 }
 聊天室鉴权类型
 
enum  NimMessageType {
  Invalid = -1 , Text = 0 , Image = 1 , Audio = 2 ,
  Video = 3 , GEO = 4 , Notification = 5 , File = 6 ,
  Tip = 10 , Custom = 100 , Unknown = 1000
}
 
enum  NimResultCode {
  Error = 0 , Success = 200 , VersionError = 201 , UidPassError = 302 ,
  VersionExpired = 317 , Forbidden = 403 , NotExist = 404 , NoModify = 406 ,
  TimeoutError = 408 , ParameterError = 414 , ConnectionError = 415 , Frequently = 416 ,
  Exist = 417 , Overrun = 419 , AccountBlock = 422 , DeviceNotTrust = 431 ,
  UnknownError = 500 , ServerDataError = 501 , TooBuzy = 503 , ExceedLimit = 508 ,
  Invalid = 509 , TeamECountLimit = 801 , TeamENAccess = 802 , TeamENotExist = 803 ,
  TeamEMemberNotExist = 804 , TeamErrType = 805 , TeamLimit = 806 , TeamUserStatusErr = 807 ,
  TeamApplySuccess = 808 , TeamAlreadyIn = 809 , TeamInviteSuccess = 810 , ForcePushCountLimit = 811 ,
  TeamMemberLimit = 813 , InvalidProtocol = 997 , EUnpacket = 998 , EPacket = 999 ,
  InBlack = 7101 , LocalRes = 10000 , RoomLocalNeedRequestAgain = 10001 , LocalResNetworkError = 10010 ,
  LocalResMsgNosUploadCancel = 10200 , LocalResMsgNosDownloadCancel = 10206 , LocalResMsgNosDownloadCheckError = 10207 , LocalResMsgFileNotExist = 10404 ,
  LocalResParameterError = 10414 , LocalResExist = 10417 , LocalResParaError = 10450 , LocalResMsgSendNosError = 10502 ,
  LocalResMsgSendDBError = 10503 , LocalResExceedLimit = 10508 , LocalResCheckMsgDBFailed = 10600 , LocalResImportMsgDBFailed = 10601 ,
  LocalResTMembersSyncUndone = 10602 , LocalResRtsError = 11100 , LocalResRtsIdNotExist = 11101 , LocalResRtsVChatExist = 11417 ,
  LocalResRtsStatusError = 11501 , LocalResRtsChannelNotExist = 11510 , RoomLinkError = 13001 , RoomError = 13002 ,
  RoomBlackBeOut = 13003 , RoomBeMuted = 13004 , RoomAntispam = 13005 , RoomAllMuted = 13006 ,
  RoomMessageFiltedForBusy = 13007 , RoomTagMuted = 13008 , LocalResAPIErrorInitUndone = 20000 , LocalResAPIErrorLoginUndone = 20001 ,
  LocalResAPIErrorLogined = 20002 , LocalResAPIErrorVersionError = 20003 , LocalResAPIErrorChatroomMixError = 20004 , LocalResAPIErrorUnableToProceed = 20005 ,
  LocalResAPIErrorUnableFunction = 20006 , LocalResAPIErrorNotSupported = 20007 , LocalResAPIErrorCacaled = 20008 , LocalResAPIErrorNotFound = 20009
}
 错误码定义 更多...
 
enum  NimClientType {
  Base = 0x0001 , Android = Base << 0 , IOS = Base << 1 , PCWindows = Base << 2 ,
  WindowsPhone = Base << 3 , Web = Base << 4 , RestAPI = Base << 5 , MacOS = Base << 6
}
 客户端类型 更多...
 
enum  NimSdkLogLevel {
  Fatal = 1 , Error = 2 , Warn = 3 , App = 5 ,
  Pro = 6
}
 
enum  NimPassThroughHttpMethod { Get = 1 , Post = 2 , Put = 3 , Delete = 4 }
 

函数

delegate void DelegateNimChatroomGetRoomInfoCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomUpdateRoomInfoCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomUpdateLocationCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomLinkConditionChangeCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomInitQueueCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomBatchUpdateQueueCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomClearQueueCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomFetchQueueCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomPollQueueCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomPickHeaderQueueCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomUpdateQueueCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomWillSendMessageCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomUploadAttachmentEndingCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomSendingMessageCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomReceiveMessageCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomReceiveNotificationCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomReceiveMessagesCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomSendMessageAckCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomQueryMessageCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomUpdateMyRoomRoleCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomQueryMembersCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomQueryMembersByAccountsCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomQueryMembersByTagCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomQueryMembersCountByTagCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomSetMemberTempMuteByTagCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomSetMemberBlackListCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomSetMemberMuteCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomSetMemberTempMuteCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomSetMemberManagerCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomSetMemberNormalCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomKickMemberCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomLoginStateChangeCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomKickoutCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomEnterCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomIndependentEnterCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomAnonymousEnterCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimChatroomExitCallback (IntPtr arg1, IntPtr userData)
 
delegate void NimChatroomLoginStateChangeCallback (NimChatroomLoginState state)
 
delegate void NimChatroomKickoutCallback (NimChatroomNotifyKickout notify)
 
delegate void NimChatroomEnterCallback (NimChatroomEnterResult result)
 
delegate void NimChatroomIndependentEnterCallback (NimChatroomEnterResult result)
 
delegate void NimChatroomAnonymousEnterCallback (NimChatroomEnterResult result)
 
delegate void NimChatroomExitCallback (NimCallbackParam param)
 
delegate void NimChatroomUpdateMyRoomRoleCallback (NimCallbackParam param)
 
delegate void NimChatroomQueryMembersCallback (NimChatroomQueryMembersResult result)
 
delegate void NimChatroomQueryMembersByAccountsCallback (NimChatroomQueryMembersResult result)
 
delegate void NimChatroomQueryMembersByTagCallback (NimChatroomQueryMembersResult result)
 
delegate void NimChatroomQueryMembersCountByTagCallback (NimChatroomQueryMembersCountResult result)
 
delegate void NimChatroomSetMemberTempMuteByTagCallback (NimChatroomSetMemberTempMuteResult result)
 
delegate void NimChatroomSetMemberBlackListCallback (NimCallbackParam param)
 
delegate void NimChatroomSetMemberMuteCallback (NimCallbackParam param)
 
delegate void NimChatroomSetMemberTempMuteCallback (NimCallbackParam param)
 
delegate void NimChatroomSetMemberManagerCallback (NimCallbackParam param)
 
delegate void NimChatroomSetMemberNormalCallback (NimCallbackParam param)
 
delegate void NimChatroomKickMemberCallback (NimCallbackParam param)
 
delegate void NimChatroomWillSendMessageCallback (NimChatroomMessage message)
 
delegate void NimChatroomUploadAttachmentEndingCallback (NimChatroomUploadAttachmentEndingParam param)
 
delegate void NimChatroomSendingMessageCallback (NimChatroomMessage message)
 
delegate void NimChatroomSendMessageAckCallback (NimChatroomSendMessageResult result)
 
delegate void NimChatroomReceiveMessageCallback (NimChatroomMessage message)
 
delegate void NimChatroomReceiveNotificationCallback (NimChatroomNotification notification)
 
delegate void NimChatroomReceiveMessagesCallback (List< NimChatroomMessage > messages)
 
delegate void NimChatroomQueryMessageCallback (NimChatroomPullMessageResult result)
 
delegate void NimChatroomInitQueueCallback (NimCallbackParam param)
 
delegate void NimChatroomBatchUpdateQueueCallback (NimChatroomBatchUpdateQueueResult result)
 
delegate void NimChatroomClearQueueCallback (NimCallbackParam param)
 
delegate void NimChatroomFetchQueueCallback (NimChatroomFetchQueueResult result)
 
delegate void NimChatroomPollQueueCallback (NimChatroomPollQueueResult result)
 
delegate void NimChatroomPickHeaderQueueCallback (NimChatroomPickHeaderQueueResult result)
 
delegate void NimChatroomUpdateQueueCallback (NimCallbackParam param)
 
delegate void NimChatroomGetRoomInfoCallback (NimChatroomQueryRoomInfoResult result)
 
delegate void NimChatroomUpdateRoomInfoCallback (NimCallbackParam param)
 
delegate void NimChatroomUpdateLocationCallback (NimCallbackParam param)
 
delegate void NimChatroomLinkConditionChangeCallback (NimChatroomLinkConditionInfo info)
 
delegate void NimCallback (NimCallbackParam arg)
 
delegate void NimVoidCallback ()
 
delegate void NimReceivePassThroughMessageCallback (NimPassThroughMsgData data)
 
delegate void NimPassThroughRequestCallback (NimPassThroughHttpDataResponse result)
 
delegate void DelegateNimReceivePassThroughMessageCallback (IntPtr arg1, IntPtr userData)
 
delegate void DelegateNimPassThroughRequestCallback (IntPtr arg1, IntPtr userData)
 

枚举类型说明

◆ NimChatroomMemberType

枚举值
Guest 

-2 游客

LimitedMember 

-1 受限用户

NormalMember 

0 普通用户

Creator 

1 创建者

Admin 

2 管理员

Anonymous 

4 匿名非注册用户

◆ NimChatroomLoginStateType

枚举值
Unlogin 

1 未登录/登录失败

Logging 

2 正在登录中

Logged 

3 已成功登录

◆ NimChatroomLoginStateDetailType

枚举值
UnloginLogout 

102 用户登出

UnloginAuthError 

111 账号密码验证错误

UnloginDeviceNotTrust 

112 设备不在信任设备表里

UnloginKickExclusive 

121 互斥类型的客户端互踢

UnloginForbidden 

122 被服务器禁止登录,包括踢掉

UnloginKickBySelfOtherClient 

123 被自己的其他端踢掉

UnloginVersionExpired 

181 版本太旧,需要升级

UnloginAuthTimeout 

182 登录超时

UnloginUnspecific 

199 未知

LoggingConnecting 

201 正在连接服务器

LoggingAuthing 

202 正在连接服务器

LoggedSyncing 

301 正在同步数据

kNIMChatroomLoginStateUnlogin_ManagerKick 

401 被管理员踢出

kNIMChatroomLoginStateUnlogin_Dismiss 

402 聊天室已经被解散

LoggedCompleted 

666 登录完成,同步数据已完成

LoggedLoggingOut 

666 登录完成,正在退出

◆ NimChatroomLinkCondition

枚举值
Alive 

0 链接正常

Retry 

1 链接失败,sdk尝试重链

Dead 

2 链接失败,开发者需要重新申请聊天室进入信息

◆ NimChatroomNotificationId

枚举值
Undefined 

0 成员进入聊天室

MemberIn 

301 成员进入聊天室

MemberExit 

302 成员离开聊天室

AddBlack 

303 成员被加黑

RemoveBlack 

304 成员被取消黑名单

AddMute 

305成员被设置禁言

RemoveMute 

306 成员被取消禁言

AddManager 

307 设置为管理员

RemoveManager 

308 取消管理员

AddFixed 

309 成员设定为固定成员

RemoveFixed 

310 成员取消固定成员

Closed 

311 聊天室被关闭了

InfoUpdated 

312 聊天室信息被更新了

MemberKicked 

313 成员被踢了

MemberTempMute 

314 临时禁言

MemberTempUnMute 

315 主动解除临时禁言

MyRoleUpdated 

316 成员主动更新了聊天室内的角色信息(仅指nick/avator/ext)

QueueChanged 

317 麦序队列中有变更 "ext" : {"_e":"OFFER", "key":"element_key", "content":"element_value"}

RoomMuted 

318 聊天室被禁言了,只有管理员可以发言,其他人都处于禁言状态

RoomDeMuted 

319 聊天室解除全体禁言状态

QueueBatchChanged 

320 麦序队列中有批量变更,发生在元素提交者离开聊天室或者从聊天室异常掉线时

TagTempMuteAdd 

321 聊天室新增标签禁言,包括的字段是muteDuration、targetTag、operator、opeNick字段

TagTempMuteRemove 

322 聊天室移除标签禁言,包括的字段是muteDuration、targetTag、operator、opeNick字段

RecallMessage 

323 聊天室消息撤回,包括的字段是operator、target、msgTime、msgId、ext字段

QueueBatchOffer 

324 聊天室麦序队列中有批量增加通知消息 "ext" :{"_e":"BATCH_OFFER","elements":[{"nick":"ddd","accid":"ljmt","value":"v2","key":"hzlj02_key2"}]}

◆ NimMessageType

枚举值
Text 

0 文本类型消息

Image 

1 图片类型消息

Audio 

2 声音类型消息

Video 

3 视频类型消息

GEO 

4 位置类型消息

Notification 

5 通知类型消息

File 

6 文件类型消息

Tip 

10 提醒类型消息

Custom 

100 自定义消息类型

Unknown 

1000 未知类型消息,作为默认值

◆ NimResultCode

错误码定义

枚举值
Error 

0 错误

Success 

200 没有错误,一切正常

VersionError 

201 客户端版本不正确

UidPassError 

302 用户名或密码错误

VersionExpired 

317 版本太旧,需要升级

Forbidden 

403 禁止操作

NotExist 

404 请求的目标(用户或对象)不存在

NoModify 

406 数据自上次查询以来未发生变化(用于增量更新)

TimeoutError 

408 请求过程超时

ParameterError 

414 参数错误

ConnectionError 

415 网络连接出现错误

Frequently 

416 操作太过频繁

Exist 

417 对象已经存在/重复操作

Overrun 

419 超限

AccountBlock 

422 帐号被禁用

DeviceNotTrust 

431 设备不在信任设备表里

UnknownError 

500 未知错误,或者不方便告诉你

ServerDataError 

501 服务器数据错误

TooBuzy 

503 服务器太忙

ExceedLimit 

508 超过配置有效期

Invalid 

509 协议无效, 不允许访问的协议

TeamECountLimit 

801 已达到人数限制

TeamENAccess 

802 没有权限

TeamENotExist 

803 群不存在

TeamEMemberNotExist 

804 用户不在兴趣组里面

TeamErrType 

805 群类型不对

TeamLimit 

806 创建群数量限制

TeamUserStatusErr 

807 群成员状态不对

TeamApplySuccess 

808 申请成功

TeamAlreadyIn 

809 已经在群里

TeamInviteSuccess 

810 邀请成功

ForcePushCountLimit 

811 强推列表账号数量超限

TeamMemberLimit 

813 操作成功,但部分成员的群数量超限

InvalidProtocol 

997 协议已失效

EUnpacket 

998 解包错误

EPacket 

999 打包错误

InBlack 

7101 被接收方加入黑名单

LocalRes 

10000 值大于该错误号的都是客户端自定义的错误号。不能随意更改其值

RoomLocalNeedRequestAgain 

10001 客户端本地错误号,需要重新向IM服务器获取进入聊天室权限

LocalResNetworkError 

10010 客户端本地错误号,本地网络错误,需要检查本地网络

LocalResMsgNosUploadCancel 

10200 (发送文件消息或者stop_upload_ex)HTTP upload to NOS上传暂停

LocalResMsgNosDownloadCancel 

10206 (收到文件消息或者stop_download_ex)HTTP download from NOS下载暂停

LocalResMsgNosDownloadCheckError 

10207 收到文件消息,NOS下载完成后本地文件检查错误,一般为下载的文件大小与文件信息不符

LocalResMsgFileNotExist 

10404 本地资源不存在

LocalResParameterError 

10414 本地错误码,参数错误,(收到消息,资源下载地址无效,无法下载)

LocalResExist 

10417 本地错误码,对象已经存在/重复操作,(收到消息,本地资源已存在,不需要重复下载)

LocalResParaError 

10450 调用api,传入的参数有误

LocalResMsgSendNosError 

10502 发送消息,上传NOS失败

LocalResMsgSendDBError 

10503 发送消息,保存DB失败

LocalResExceedLimit 

10508 本地错误码,超过配置有效期或者所需参数不存在

LocalResCheckMsgDBFailed 

10600 导入消息历史时验证身份和加密密钥不通过

LocalResImportMsgDBFailed 

10601 导入消息历史时写记录失败

LocalResTMembersSyncUndone 

10602 群成员尚同步完成

LocalResRtsError 

11100 rts会话 未知错误

LocalResRtsIdNotExist 

11101 rts会话 id不存在

LocalResRtsVChatExist 

11417 rts会话 音视频已存在

LocalResRtsStatusError 

11501 rts会话 通道状态不正确

LocalResRtsChannelNotExist 

11510 rts会话 通道不存在

RoomLinkError 

13001 主链接错误

RoomError 

13002 聊天室状态异常

RoomBlackBeOut 

13003 黑名单用户禁止进入

RoomBeMuted 

13004 被禁言

RoomAntispam 

13005 聊天室消息被垃圾

RoomAllMuted 

13006 聊天室处于整体禁言状态,只有管理员能发言

RoomMessageFiltedForBusy 

13007 因单个聊天室高频引起消息被过滤投递

RoomTagMuted 

13008 在禁言标签中

LocalResAPIErrorInitUndone 

20000 还未初始化或初始化未正常完成

LocalResAPIErrorLoginUndone 

20001 还未登陆或登录未完成

LocalResAPIErrorLogined 

20002 已经登录

LocalResAPIErrorVersionError 

20003 sdk 版本不对,可能会引发其他问题

LocalResAPIErrorChatroomMixError 

20004 聊天室模式混用错误,不支持同时以登陆状态和匿名状态登陆聊天室

LocalResAPIErrorUnableToProceed 

20005 探测到某些操作已经无法继续,比如对象已经被释放

LocalResAPIErrorUnableFunction 

20006 功能未开启

LocalResAPIErrorNotSupported 

20007 功能不支持

LocalResAPIErrorCacaled 

20008 操作被主动取消

LocalResAPIErrorNotFound 

20009 未能找到相关记录

◆ NimClientType

客户端类型

枚举值
Android 

1 安卓

IOS 

2 iOS

PCWindows 

3 Windows

WindowsPhone 

8 WindowsPhone

Web 

16 Web

RestAPI 

32 RestAPI

MacOS 

64 MacOS

◆ NimSdkLogLevel

枚举值
Fatal 

1 Fatal级别Log

Error 

2 Error级别Log

Warn 

3 Warn级别Log

App 

5 应用级别Log,正式发布时为了精简sdk log,可采用此级别

Pro 

6 调试过程级别Log,更加详细,更有利于开发调试

◆ NimPassThroughHttpMethod

枚举值
Get 

1 GET

Post 

2 POST

Put 

3 PUT

Delete 

4 DELETE

函数说明

◆ NimChatroomLoginStateChangeCallback()

delegate void NimElite.NimChatroomLoginStateChangeCallback ( NimChatroomLoginState  state)
参数
arg

◆ NimChatroomKickoutCallback()

delegate void NimElite.NimChatroomKickoutCallback ( NimChatroomNotifyKickout  notify)
参数
arg

◆ NimChatroomEnterCallback()

delegate void NimElite.NimChatroomEnterCallback ( NimChatroomEnterResult  result)
参数
arg

◆ NimChatroomIndependentEnterCallback()

delegate void NimElite.NimChatroomIndependentEnterCallback ( NimChatroomEnterResult  result)
参数
arg

◆ NimChatroomAnonymousEnterCallback()

delegate void NimElite.NimChatroomAnonymousEnterCallback ( NimChatroomEnterResult  result)
参数
arg

◆ NimChatroomExitCallback()

delegate void NimElite.NimChatroomExitCallback ( NimCallbackParam  param)
参数
arg