NIM Unity SDK
V2.4.1
|
Functions | |
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) |
|
strong |
Logout type
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Predefined event types
|
strong |
Online state values
|
strong |
The error code returned by NIMResCode (only defines errors handled on the client)
Enumerator | |
---|---|
kNIMResError | Errors |
kNIMResSuccess | No errors. |
kNIMResVersionError | Client version error |
kNIMResUidPassError | Incorrect username or password |
kNIMResForbidden | Forbidden operation |
kNIMResNotExist | The requested target (user or object) does not exist |
kNIMResNoModify | The data has not changed since the last query (for incremental updates) |
kNIMResTimeoutError | Request timeout |
kNIMResParameterError | Invalid parameter |
kNIMResConnectionError | Connection error |
kNIMResFrequently | The operation is too frequent |
kNIMResExist | The object already exists/repeated operation |
kNIMResOverrun | Overrun |
kNIMResAccountBlock | The account is banned |
kNIMResUnknownError | Unknown error |
kNIMResServerDataError | Server data error |
kNIMResTooBuzy | Server is too busy. |
kNIMResInvalid | The protocol is invalid |
kNIMResTeamECountLimit | The number of group members has been reached. |
kNIMResTeamENAccess | No permissions |
kNIMResTeamENotExist | Group does not exist |
kNIMResTeamEMemberNotExist | User is not in the group |
kNIMResTeamErrType | Incorrect group type |
kNIMResTeamLimit | The number of created groups reached the upper limit |
kNIMResTeamUserStatusErr | Invalid status of group members |
kNIMResTeamApplySuccess | The request is accepted. |
kNIMResTeamAlreadyIn | The user is already in the group |
kNIMResTeamInviteSuccess | Invitation succeeded. |
kNIMResForcePushCountLimit | The number of accounts for force push exceeds the upper limit |
kNIMResTeamMemberLimit | The operation is successful, but the number of groups of some members exceeds the upper limit |
kNIMResInvalidProtocol | The protocol has expired |
kNIMResEUnpacket | Unpacking error |
kNIMResEPacket | Packing error |
kNIMResInBlack | Included in the blocklist. SDK v2.5.0 or later |
kNIMLocalRes | Any value greater than this error code is a client-defined error number. Its value cannot be changed arbitrarily |
kNIMResRoomLocalNeedRequestAgain | The client's local error code, you need to obtain the permission to enter the chat room from the IM server again |
kNIMLocalResNetworkError | Client local error code for local network error, need to check the local network |
kNIMLocalResMsgNosUploadCancel | Send file message, NOS upload paused |
kNIMLocalResMsgNosDownloadCancel | File message received, NOS download paused |
kNIMLocalResMsgFileNotExist | The local resource does not exist |
kNIMLocalResMsgUrlInvalid | Received a message, the resource download URL is invalid and cannot be downloaded |
kNIMLocalResMsgFileExist | Received the message, the local resource already exists, repeated download not required |
kNIMLocalResParaError | Parameter error when calling an API. |
kNIMLocalResMsgSendNosError | Send message, upload NOS failed |
kNIMLocalResCheckMsgDBFailed | Failed to verify identity and encryption key when importing message history |
kNIMLocalResImportMsgDBFailed | Failed to write records when importing message history |
kNIMLocalResRtsError | RTS session, unknown error |
kNIMLocalResRtsIdNotExist | RTS session ID does not exist |
kNIMLocalResRtsVChatExist | RTS session audio and video already exists |
kNIMLocalResRtsStatusError | RTS session channel status error |
kNIMLocalResRtsChannelNotExist | RTS session channel does not exist |
kNIMResRoomLinkError | Room link error |
kNIMResRoomError | Invalid chat room state |
kNIMResRoomBlackBeOut | Members in a blocklist are not allowed to join |
kNIMResRoomBeMuted | Muted room |
kNIMResRoomAllMuted | The chat room is in the all-muted state. Only administrators can speak |
kNIMLocalResAPIErrorInitUndone | Not initialized or initialization is incomplete |
kNIMLocalResAPIErrorEnterUndone | Not logged in or login is incomplete |
kNIMLocalResAPIErrorEntered | Already logged in |
kNIMLocalResAPIErrorVersionError | Incorrect SDK version |
kNIMLocalResAPIErrorChatroomMixError | The chat room state error. it is not supported to log in to the chat room in the login state and the anonymous state at the same time. |