NIM C# SDK
6.3.0
|
Classes | |
class | DocTransitionParams |
HTTP上传转码文档参数 More... | |
class | HttpExtendedParameters |
NOS扩展上传\下载接口参数 More... | |
class | InitConfigParams |
class | InitConfigResultParams |
class | NIMNosInitResult |
class | NIMNosTagInfo |
class | NosAPI |
class | NosNativeMethods |
class | ProgressData |
上传/下载进度回调数据 More... | |
class | ProgressPair |
class | UploadResultParam |
Functions | |
delegate void | InitConfigHandler (NIMNosInitConfigResultType type, InitConfigResultParams json_result, string json_extension) |
delegate void | DownloadResultHandler (int rescode, string filePath, string callId, string resId) |
下载结果回调 More... | |
delegate void | UploadResultHandler (int rescode, string url) |
上传结果回调 More... | |
delegate void | UploadResultHandler2 (int rescode, string url, UploadResultParam param) |
delegate void | ProgressResultHandler (ProgressData prgData) |
传输进度回调 More... | |
delegate void | DownloadCb (int rescode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string file_path, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string call_id, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string res_id, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string json_extension, IntPtr user_data) |
下载结果回调 More... | |
delegate void | DownloadPrgCb (long downloaded_size, long file_size, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string json_extension, IntPtr user_data) |
下载进度回调 More... | |
delegate void | UploadCb (int rescode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string url, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string json_extension, IntPtr user_data) |
上传结果回调 More... | |
delegate void | UploadPrgCb (long uploaded_size, long file_size, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string json_extension, IntPtr user_data) |
上传进度回调 More... | |
delegate void | DownloadSpeedCb (long download_speed, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))]string json_extension, IntPtr user_data) |
delegate void | DownloadInfoCb (long actual_download_size, long download_speed, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string json_extension, IntPtr user_data) |
delegate void | UploadSpeedCb (long upload_speed, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string json_extension, IntPtr user_data) |
delegate void | UploadInfoCb (long actual_upload_size, long upload_speed, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))]string json_extension, IntPtr user_data) |
delegate void | InitConfigCb (NIMNosInitConfigResultType type, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))]string json_result, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))]string json_extension, IntPtr user_data) |
delegate void | SafeUrlConverterCb (int rescode, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))]string originUrl, IntPtr userData) |
nim callback function for safe url to origin url More... | |
|
strong |
|
strong |
delegate void NIM.Nos.DownloadCb | ( | int | rescode, |
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | file_path, | ||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | call_id, | ||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | res_id, | ||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | json_extension, | ||
IntPtr | user_data | ||
) |
下载结果回调
rescode | 下载结果,一切正常200 |
file_path | 下载资源文件本地绝对路径 |
call_id | 如果下载的是消息中的资源,则为消息所属的会话id,否则为空 |
res_id | 如果下载的是消息中的资源,则为消息id,否则为空 |
json_extension | json扩展数据(备用) |
user_data | APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理! |
delegate void NIM.Nos.DownloadInfoCb | ( | long | actual_download_size, |
long | download_speed, | ||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | json_extension, | ||
IntPtr | user_data | ||
) |
delegate void NIM.Nos.DownloadPrgCb | ( | long | downloaded_size, |
long | file_size, | ||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | json_extension, | ||
IntPtr | user_data | ||
) |
下载进度回调
downloaded_size | 已下载数据大小 |
file_size | 文件大小 |
json_extension | json扩展数据(备用) |
user_data | APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理! |
delegate void NIM.Nos.DownloadResultHandler | ( | int | rescode, |
string | filePath, | ||
string | callId, | ||
string | resId | ||
) |
下载结果回调
rescode | 下载结果,一切正常200 |
filePath | 下载资源文件本地绝对路径 |
callId | 如果下载的是消息中的资源,则为消息所属的会话id,否则为空 |
resId | 如果下载的是消息中的资源,则为消息id,否则为空 |
delegate void NIM.Nos.DownloadSpeedCb | ( | long | download_speed, |
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | json_extension, | ||
IntPtr | user_data | ||
) |
delegate void NIM.Nos.InitConfigCb | ( | NIMNosInitConfigResultType | type, |
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | json_result, | ||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | json_extension, | ||
IntPtr | user_data | ||
) |
delegate void NIM.Nos.InitConfigHandler | ( | NIMNosInitConfigResultType | type, |
InitConfigResultParams | json_result, | ||
string | json_extension | ||
) |
delegate void NIM.Nos.ProgressResultHandler | ( | ProgressData | prgData | ) |
传输进度回调
ProgressData | 回调数据 |
delegate void NIM.Nos.SafeUrlConverterCb | ( | int | rescode, |
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | originUrl, | ||
IntPtr | userData | ||
) |
nim callback function for safe url to origin url
rescode | 返回的错误码,200成功,404,传入的安全链接(短链)不存在,或不是有效的安全链接(短链) |
originUrl | 源链(长链) |
userData |
delegate void NIM.Nos.UploadCb | ( | int | rescode, |
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | url, | ||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | json_extension, | ||
IntPtr | user_data | ||
) |
上传结果回调
rescode | 上传结果,一切正常200 |
url | url地址 |
json_extension | json扩展数据(备用) |
user_data | APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理! |
delegate void NIM.Nos.UploadInfoCb | ( | long | actual_upload_size, |
long | upload_speed, | ||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | json_extension, | ||
IntPtr | user_data | ||
) |
delegate void NIM.Nos.UploadPrgCb | ( | long | uploaded_size, |
long | file_size, | ||
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | json_extension, | ||
IntPtr | user_data | ||
) |
上传进度回调
uploaded_size | 已上传数据大小 |
file_size | 文件大小 |
json_extension | json扩展数据(备用) |
user_data | APP的自定义用户数据,SDK只负责传回给回调函数,不做任何处理! |
delegate void NIM.Nos.UploadResultHandler | ( | int | rescode, |
string | url | ||
) |
上传结果回调
rescode | 上传结果,一切正常200 |
url | url地址 |
delegate void NIM.Nos.UploadResultHandler2 | ( | int | rescode, |
string | url, | ||
UploadResultParam | param | ||
) |
delegate void NIM.Nos.UploadSpeedCb | ( | long | upload_speed, |
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Utf8StringMarshaler))] string | json_extension, | ||
IntPtr | user_data | ||
) |