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

class  CacheFileInfo
 
class  ClientAPI
 NIM SDK提供的Client接口,主要包括SDK初始化/清理、客户端登录/退出/重连/掉线/被踢等流程 更多...
 
class  ClientNativeMethods
 
class  ConfigMultiportPushParam
 
class  DndConfigParam
 客户端传入的属性(如果开启免打扰,请让第三方确保把时间转成东八区,即北京时间,小时是24小时制) 更多...
 
class  GlobalAPI
 
class  LoginExtensionParams
 
class  LoginResultEventArgs
 
class  MessageAck
 
class  MessageArcEventArgs
 
class  MessageFactory
 
class  MonoPInvokeCallbackAttribute
 Do nothing on windows desktop 更多...
 
class  NativeConfig
 native dll 信息 更多...
 
class  NetDetectResult
 网络探测结果 更多...
 
class  NIMAudioAttachment
 
class  NIMAudioInfo
 语音信息,用于语音转文字 更多...
 
class  NIMAudioMessage
 
class  NIMBroadcastMessage
 广播消息 更多...
 
class  NIMCustomMessage
 自定义消息基类 更多...
 
class  NIMEventConfig
 
class  NIMEventInfo
 事件信息 更多...
 
class  NIMFileMessage
 
class  NIMGlobal
 
class  NIMGlobalNativeMethods
 
class  NIMImageAttachment
 
class  NIMImageMessage
 
class  NIMIMMessage
 
class  NIMKickOtherResult
 
class  NIMKickoutOtherDeviceInfo
 
class  NIMKickoutResult
 
class  NIMLocationMessage
 
class  NIMLocationMsgInfo
 
class  NIMLoginResult
 
class  NIMLogoutResult
 
class  NIMMessageAttachment
 
class  NIMMessageSetting
 消息属性设置 更多...
 
class  NIMMultiClientLoginInfo
 
class  NIMMultiSpotLoginNotifyResult
 
class  NIMReceivedMessage
 
class  NIMReceiveMessageEventArgs
 
class  NIMSubscribeApi
 
class  NIMSubscribeNativeMethods
 
class  NIMSubscribeStatus
 事件订阅信息 更多...
 
class  NIMTeamNotification
 
class  NIMTeamNotificationMessage
 
class  NIMTextMessage
 
class  NIMTipMessage
 
class  NIMTools
 
class  NIMUnknownMessage
 
class  NimUploadProgressData
 nos 上传进度回调 更多...
 
class  NIMVideoAttachment
 
class  NIMVideoMessage
 
class  NotificationData
 
class  RecallNotification
 消息撤回通知 更多...
 
class  ReceiveMessageArgs
 
class  TalkAPI
 消息相关api 更多...
 
class  TalkNativeMethods
 
class  TeamForecePushMessage
 群强推消息 更多...
 
class  ToolsAPI
 

枚举

enum  NIMLogoutType { kNIMLogoutChangeAccout = 1 , kNIMLogoutKickout = 2 , kNIMLogoutAppExit = 3 , kNIMLogoutRelogin = 4 }
 Logout类型 更多...
 
enum  NIMKickReason { kNIMKickReasonSameGeneric = 1 , kNIMKickReasonServerKick = 2 , kNIMKickReasonKickBySelfOtherClient = 3 }
 被踢原因 更多...
 
enum  NIMClientType {
  kNIMClientTypeAndroid = 1 , kNIMClientTypeiOS = 2 , kNIMClientTypePCWindows = 4 , kNIMClientTypeWeb = 16 ,
  kNIMClientTypeRestAPI = 32 , kNIMClientTypeMacOS = 64
}
 客户端类型 更多...
 
enum  NIMLoginStep { kNIMLoginStepLinking = 0 , kNIMLoginStepLink = 1 , kNIMLoginStepLogining = 2 , kNIMLoginStepLogin = 3 }
 登录步骤 更多...
 
enum  NIMMultiSpotNotifyType { kNIMMultiSpotNotifyTypeImIn = 2 , kNIMMultiSpotNotifyTypeImOut = 3 }
 多点登录通知类型 更多...
 
enum  NIMLoginState { kNIMLoginStateLogin = 1 , kNIMLoginStateUnLogin = 2 }
 登录状态 更多...
 
enum  NIMAuthType : int { kNIMAuthTypeDefault = 0 , kNIMAuthTypeDynamicToken = 1 , kNIMAuthTypeThirdpartyCallback = 2 }
 鉴权类型 更多...
 
enum  NIMProxyDetectStep { kNIMProxyDetectStepAllComplete = 5 }
 代理测试步骤 更多...
 
enum  NIMProxyType {
  kNIMProxyNone = 0 , kNIMProxyHttp11 = 1 , kNIMProxySocks4 = 4 , kNIMProxySocks4a = 5 ,
  kNIMProxySocks5 = 6
}
 代理类型 更多...
 
enum  NetDetectionRes {
  ProcessError = 0 , Success = 200 , InvalidRequest = 400 , DataError = 417 ,
  InnerIP = 606 , OutOfLimit = 607 , TypeError = 20001 , IPError = 20002 ,
  SocketError = 20003
}
 网络探测错误 更多...
 
enum  NIMSDKException { kNIMSDKExceptionSpaceEmpty = 1 }
 sdk异常 更多...
 
enum  CacheFileType { Misc , Image , Audio , Video }
 sdk缓存文件类型 更多...
 
enum  NIMMessageType {
  kNIMMessageTypeText = 0 , kNIMMessageTypeImage = 1 , kNIMMessageTypeAudio = 2 , kNIMMessageTypeVideo = 3 ,
  kNIMMessageTypeLocation = 4 , kNIMMessageTypeNotification = 5 , kNIMMessageTypeFile = 6 , kNIMMessageTypeTips = 10 ,
  kNIMMessageTypeRobot = 11 , kNIMMessageTypeCustom = 100 , kNIMMessageTypeUnknown = 1000
}
 
enum  NIMMessageFeature {
  kNIMMessageFeatureDefault = 0 , kNIMMessageFeatureLeaveMsg = 1 , kNIMMessageFeatureRoamMsg = 2 , kNIMMessageFeatureSyncMsg = 3 ,
  kNIMMessageFeatureCustomizedMsg = 4
}
 
enum  NIMMessageSettingStatus { kNIMMessageStatusUndefine = -1 , kNIMMessageStatusNotSet = 0 , kNIMMessageStatusSetted = 1 }
 
enum  NIMAppDataType { kNIMAppDataTypeUnknownOtherRes = 0 , kNIMAppDataTypeImage = 1 , kNIMAppDataTypeAudio = 2 , kNIMAppDataTypeVideo = 3 }
 AppData类型 更多...
 
enum  NIMEventBroadcastType { kNIMEventBroadcastTypeOnline = 1 , kNIMEventBroadcastTypeAll = 2 }
 事件广播类型 更多...
 
enum  NIMEventSyncType { kNIMEventSyncTypeNoSelf = 0 , kNIMEventSyncTypeSelf = 1 }
 事件同步类型 更多...
 
enum  NIMEventSubscribeSyncEventType { kNIMEventSubscribeSyncTypeUnSync = 0 , kNIMEventSubscribeSyncTypeSync = 1 }
 订阅的事件的同步类型 更多...
 
enum  NIMEventType { kNIMEventTypeOnlineState = 1 , kNIMEventTypeSyncEvent = 2 , kNIMEventTypeCustom = 100000 }
 服务器预定义的事件类型 更多...
 
enum  NIMEventOnlineStateValue {
  kNIMEventOnlineStateValueLogin = 1 , kNIMEventOnlineStateValueLogout = 2 , kNIMEventOnlineStateValueDisconnect = 3 , kNIMEventOnlineStateValueCustom = 10000 ,
  kNIMEventOnlineStateValueUpdateConfig = kNIMEventOnlineStateValueCustom + 1
}
 在线状态事件值 更多...
 
enum  ResponseCode {
  kNIMResError = 0 , kNIMResSuccess = 200 , kNIMResVersionError = 201 , kNIMResUidPassError = 302 ,
  kNIMResForbidden = 403 , kNIMResNotExist = 404 , kNIMResNoModify = 406 , kNIMResTimeoutError = 408 ,
  kNIMResParameterError = 414 , kNIMResConnectionError = 415 , kNIMResFrequently = 416 , kNIMResExist = 417 ,
  kNIMResOverrun = 419 , kNIMResAccountBlock = 422 , kNIMResUnknownError = 500 , kNIMResServerDataError = 501 ,
  kNIMResTooBuzy = 503 , kNIMResInvalid = 509 , kNIMResTeamECountLimit = 801 , kNIMResTeamENAccess = 802 ,
  kNIMResTeamENotExist = 803 , kNIMResTeamEMemberNotExist = 804 , kNIMResTeamErrType = 805 , kNIMResTeamLimit = 806 ,
  kNIMResTeamUserStatusErr = 807 , kNIMResTeamApplySuccess = 808 , kNIMResTeamAlreadyIn = 809 , kNIMResTeamInviteSuccess = 810 ,
  kNIMResForcePushCountLimit = 811 , kNIMResTeamMemberLimit = 813 , kNIMResInvalidProtocol = 997 , kNIMResEUnpacket = 998 ,
  kNIMResEPacket = 999 , kNIMResInBlack = 7101 , kNIMLocalRes = 10000 , kNIMResRoomLocalNeedRequestAgain = 10001 ,
  kNIMLocalResNetworkError = 10010 , kNIMLocalResMsgNosUploadCancel = 10200 , kNIMLocalResMsgNosDownloadCancel = 10206 , kNIMLocalResMsgFileNotExist = 10404 ,
  kNIMLocalResMsgUrlInvalid = 10414 , kNIMLocalResMsgFileExist = 10417 , kNIMLocalResParaError = 10450 , kNIMLocalResMsgSendNosError = 10502 ,
  kNIMLocalResCheckMsgDBFailed = 10600 , kNIMLocalResImportMsgDBFailed = 10601 , kNIMLocalResRtsError = 11100 , kNIMLocalResRtsIdNotExist = 11101 ,
  kNIMLocalResRtsVChatExist = 11417 , kNIMLocalResRtsStatusError = 11501 , kNIMLocalResRtsChannelNotExist = 11510 , kNIMResRoomLinkError = 13001 ,
  kNIMResRoomError = 13002 , kNIMResRoomBlackBeOut = 13003 , kNIMResRoomBeMuted = 13004 , kNIMResRoomAllMuted = 13006 ,
  kNIMLocalResAPIErrorInitUndone = 20000 , kNIMLocalResAPIErrorEnterUndone = 20001 , kNIMLocalResAPIErrorEntered = 20002 , kNIMLocalResAPIErrorVersionError = 20003 ,
  kNIMLocalResAPIErrorChatroomMixError = 20004
}
 NIMResCode 返回的错误号(只定义需要客户端处理的) 更多...
 

函数

delegate void nim_client_multiport_push_config_cb_func (int rescode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string json_params, IntPtr user_data)
 
delegate void nim_client_dnd_cb_func (int rescode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string json_params, IntPtr user_data)
 
delegate void ConfigMultiportPushDelegate (ResponseCode response, ConfigMultiportPushParam param)
 
delegate void NimWriteLogDelegate (int level, string log)
 
delegate void NimNetworkDetectionDelegate (NetDetectionRes error, NetDetectResult result, IntPtr userData)
 
delegate void NimProxyDetectionDelegate (bool connection, NIMProxyDetectStep step)
 
delegate void DeleteCacheFileDelegate (ResponseCode code)
 
delegate void GetCacheFileInfoDelegate (CacheFileInfo info)
 
delegate void nim_global_net_detect_cb_func (int rescode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string json_params, IntPtr user_data)
 
delegate void nim_sdk_exception_cb_func (NIMSDKException exception, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))]string log, IntPtr user_data)
 
delegate void nim_sdk_del_cache_file_cb_func (ResponseCode rescode, IntPtr user_data)
 
delegate void nim_sdk_get_cache_file_info_cb_func ([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))]string info, IntPtr user_data)
 
delegate void ReportUploadProgressDelegate (long uploadedSize, long totalSize, object progressData)
 
delegate void ReceiveBatchMesaagesDelegate (List< NIMReceivedMessage > msgsList)
 
delegate bool TeamNotificationFilterDelegate (NIMIMMessage msg, string jsonExtension)
 
delegate void RecallMessageDelegate (ResponseCode result, RecallNotification[] notify)
 
delegate void ReceiveBroadcastDelegate (NIMBroadcastMessage msg)
 
delegate void ReceiveBroadcastMsgsDelegate (List< NIMBroadcastMessage > msg)
 
delegate void UploadFileCallback (long uploadedSize, long totalSize, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string jsonExtension, IntPtr userData)
 
delegate void IMMessageArcCallback ([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string jsonArcResult, IntPtr userData)
 
delegate void IMReceiveMessageCallback ([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string jsonArcResult, IntPtr userData)
 
delegate bool NIMTeamNotificationFilterFunc ([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))] string jsonExtension, IntPtr userData)
 
delegate void nim_talk_recall_msg_func (int rescode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))]string content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))]string json_extension, IntPtr user_data)
 
delegate void nim_talk_receive_broadcast_cb_func ([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))]string content, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(NimUtility.Utf8StringMarshaler))]string json_extension, IntPtr user_data)
 

枚举类型说明

◆ NIMLogoutType

Logout类型

枚举值
kNIMLogoutChangeAccout 

注销/切换帐号(返回到登录界面)

kNIMLogoutKickout 

被踢(返回到登录界面)

kNIMLogoutAppExit 

程序退出

kNIMLogoutRelogin 

重连操作,包括保存密码时启动程序伪登录后的重连操作以及掉线后的重连操作(帐号未变化)

◆ NIMKickReason

被踢原因

枚举值
kNIMKickReasonSameGeneric 

互斥类型的客户端互踢

kNIMKickReasonServerKick 

服务器端发起踢客户端指令

kNIMKickReasonKickBySelfOtherClient 

被自己的其他端踢掉

◆ NIMClientType

客户端类型

枚举值
kNIMClientTypeAndroid 

Android

kNIMClientTypeiOS 

iOS

kNIMClientTypePCWindows 

PC Windows

kNIMClientTypeWeb 

Web

kNIMClientTypeRestAPI 

RestAPI

kNIMClientTypeMacOS 

Mac

◆ NIMLoginStep

登录步骤

枚举值
kNIMLoginStepLinking 

正在连接

kNIMLoginStepLink 

连接服务器

kNIMLoginStepLogining 

正在登录

kNIMLoginStepLogin 

登录验证

◆ NIMMultiSpotNotifyType

多点登录通知类型

枚举值
kNIMMultiSpotNotifyTypeImIn 

通知其他在线端自己登录了

kNIMMultiSpotNotifyTypeImOut 

通知其他在线端自己退出

◆ NIMLoginState

登录状态

枚举值
kNIMLoginStateLogin 

已登录

kNIMLoginStateUnLogin 

未登录

◆ NIMAuthType

enum NIM.NIMAuthType : int

鉴权类型

枚举值
kNIMAuthTypeDefault 

默认鉴权类型,静态 token

kNIMAuthTypeDynamicToken 

基于 app secret 生成的动态 token 鉴权

kNIMAuthTypeThirdpartyCallback 

基于第三方回调的 token 鉴权方式

◆ NIMProxyDetectStep

代理测试步骤

枚举值
kNIMProxyDetectStepAllComplete 

探测代理有效性结束

◆ NIMProxyType

代理类型

枚举值
kNIMProxyNone 

不使用代理

kNIMProxyHttp11 

HTTP 1.1 Proxy(暂不支持)

kNIMProxySocks4 

Socks4

kNIMProxySocks4a 

Socks4a

kNIMProxySocks5 

Socks5

◆ NetDetectionRes

网络探测错误

枚举值
ProcessError 

流程错误

Success 

成功

InvalidRequest 

非法请求格式

DataError 

请求数据不对

InnerIP 

ip为内网ip

OutOfLimit 

频率超限

TypeError 

探测类型错误

IPError 

ip错误

SocketError 

sock错误

◆ NIMSDKException

sdk异常

枚举值
kNIMSDKExceptionSpaceEmpty 

当前数据目录所在盘符空间紧张或用完 log: {"free_space" : lf, "message":""}, free_space单位M

◆ CacheFileType

sdk缓存文件类型

枚举值
Misc 

杂项文件

Image 

图片

Audio 

语音

Video 

视频

◆ NIMMessageType

枚举值
kNIMMessageTypeText 

文本类型消息

kNIMMessageTypeImage 

图片类型消息

kNIMMessageTypeAudio 

声音类型消息

kNIMMessageTypeVideo 

视频类型消息

kNIMMessageTypeLocation 

位置类型消息

kNIMMessageTypeNotification 

系统类型通知(包括入群出群通知等) NIMNotificationId

kNIMMessageTypeFile 

文件类型消息

kNIMMessageTypeTips 

提醒类型消息,Tip内容根据格式要求填入消息结构中的kNIMMsgKeyServerExt字段

kNIMMessageTypeRobot 

波特机器人消息

kNIMMessageTypeCustom 

自定义消息

kNIMMessageTypeUnknown 

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

◆ NIMMessageFeature

枚举值
kNIMMessageFeatureDefault 

默认

kNIMMessageFeatureLeaveMsg 

离线消息

kNIMMessageFeatureRoamMsg 

漫游消息

kNIMMessageFeatureSyncMsg 

同步消息

kNIMMessageFeatureCustomizedMsg 

透传消息

◆ NIMAppDataType

AppData类型

枚举值
kNIMAppDataTypeUnknownOtherRes 

其他资源文件(除了消息历史文件和已知类型之外的消息数据缓存文件)

kNIMAppDataTypeImage 

图片消息文件

kNIMAppDataTypeAudio 

语音消息文件

kNIMAppDataTypeVideo 

视频消息文件

◆ NIMEventBroadcastType

事件广播类型

枚举值
kNIMEventBroadcastTypeOnline 

仅在线

kNIMEventBroadcastTypeAll 

在线和离线

◆ NIMEventSyncType

事件同步类型

枚举值
kNIMEventSyncTypeNoSelf 

事件不同步给自己其他端

kNIMEventSyncTypeSelf 

事件同步给自己其他端

◆ NIMEventSubscribeSyncEventType

订阅的事件的同步类型

枚举值
kNIMEventSubscribeSyncTypeUnSync 

订阅后不同步最新事件

kNIMEventSubscribeSyncTypeSync 

订阅后立即同步最新事件

◆ NIMEventType

服务器预定义的事件类型

枚举值
kNIMEventTypeOnlineState 

在线状态事件(客户端可发送)

kNIMEventTypeSyncEvent 

同步“订阅事件”事件(客户端不可发送)

kNIMEventTypeCustom 

服务器保留1~99999的事件类型,客户端自定义事件类型需大于99999

◆ NIMEventOnlineStateValue

在线状态事件值

枚举值
kNIMEventOnlineStateValueLogin 

登录

kNIMEventOnlineStateValueLogout 

登出

kNIMEventOnlineStateValueDisconnect 

断开连接

kNIMEventOnlineStateValueCustom 

在线状态事件服务器保留1~9999的事件值,客户端自定义事件值需大于9999

kNIMEventOnlineStateValueUpdateConfig 

自己的其他端更新了自己端的multi_config信息

◆ ResponseCode

NIMResCode 返回的错误号(只定义需要客户端处理的)

枚举值
kNIMResError 

错误

kNIMResSuccess 

没有错误,一切正常

kNIMResVersionError 

客户端版本不正确

kNIMResUidPassError 

用户名或密码错误

kNIMResForbidden 

禁止操作

kNIMResNotExist 

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

kNIMResNoModify 

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

kNIMResTimeoutError 

请求过程超时

kNIMResParameterError 

参数错误

kNIMResConnectionError 

网络连接出现错误

kNIMResFrequently 

操作太过频繁

kNIMResExist 

对象已经存在/重复操作

kNIMResOverrun 

超限

kNIMResAccountBlock 

帐号被禁用

kNIMResUnknownError 

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

kNIMResServerDataError 

服务器数据错误

kNIMResTooBuzy 

服务器太忙

kNIMResInvalid 

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

kNIMResTeamECountLimit 

已达到人数限制

kNIMResTeamENAccess 

没有权限

kNIMResTeamENotExist 

群不存在

kNIMResTeamEMemberNotExist 

用户不在兴趣组里面

kNIMResTeamErrType 

群类型不对

kNIMResTeamLimit 

创建群数量限制

kNIMResTeamUserStatusErr 

群成员状态不对

kNIMResTeamApplySuccess 

申请成功

kNIMResTeamAlreadyIn 

已经在群里

kNIMResTeamInviteSuccess 

邀请成功

kNIMResForcePushCountLimit 

强推列表账号数量超限

kNIMResTeamMemberLimit 

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

kNIMResInvalidProtocol 

协议已失效

kNIMResEUnpacket 

解包错误

kNIMResEPacket 

打包错误

kNIMResInBlack 

被接收方加入黑名单 SDK版本大于2.5.0支持

kNIMLocalRes 

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

kNIMResRoomLocalNeedRequestAgain 

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

kNIMLocalResNetworkError 

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

kNIMLocalResMsgNosUploadCancel 

发送文件消息,NOS上传暂停

kNIMLocalResMsgNosDownloadCancel 

收到文件消息,NOS下载暂停

kNIMLocalResMsgFileNotExist 

本地资源不存在

kNIMLocalResMsgUrlInvalid 

收到消息,资源下载地址无效,无法下载

kNIMLocalResMsgFileExist 

收到消息,本地资源已存在,不需要重复下载

kNIMLocalResParaError 

调用api,传入的参数有误

kNIMLocalResMsgSendNosError 

发送消息,上传NOS失败

kNIMLocalResCheckMsgDBFailed 

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

kNIMLocalResImportMsgDBFailed 

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

kNIMLocalResRtsError 

rts会话 未知错误

kNIMLocalResRtsIdNotExist 

rts会话 id不存在

kNIMLocalResRtsVChatExist 

rts会话 音视频已存在

kNIMLocalResRtsStatusError 

rts会话 通道状态不正确

kNIMLocalResRtsChannelNotExist 

rts会话 通道不存在

kNIMResRoomLinkError 

主链接错误

kNIMResRoomError 

聊天室状态异常

kNIMResRoomBlackBeOut 

黑名单用户禁止进入

kNIMResRoomBeMuted 

被禁言

kNIMResRoomAllMuted 

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

kNIMLocalResAPIErrorInitUndone 

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

kNIMLocalResAPIErrorEnterUndone 

还未登陆或登录未完成

kNIMLocalResAPIErrorEntered 

已经登录

kNIMLocalResAPIErrorVersionError 

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

kNIMLocalResAPIErrorChatroomMixError 

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