NIM C# SDK  6.3.0
NIM.GlobalAPI Class Reference

Static Public Member Functions

static void FreeStringBuffer (IntPtr str)
 释放SDK内部分配的内存 More...
 
static void FreeBuffer (IntPtr data)
 释放SDK内部分配的内存 More...
 
static void SetSdkLogCallback (NimWriteLogDelegate cb)
 
static void SetProxy (NIMProxyType type, string host, int port, string user, string password)
 设置SDK统一的网络代理。不需要代理时,type设置为kNIMProxyNone,其余参数都传空字符串(端口设为0)。有些代理不需要用户名和密码,相应参数也传空字符串 More...
 
static void DetectProxy (NIMProxyType type, string host, int port, string user, string password, NimProxyDetectionDelegate cb)
 测试代理 More...
 
static void RegExceptionReportCb (nim_sdk_exception_cb_func cb)
 注册输出系统环境异常的回调 More...
 
static void DeleteCacheFile (string accountID, CacheFileType fileType, long endtime, DeleteCacheFileDelegate cb)
 删除sdk缓存文件 More...
 
static void GetCacheFileInfo (string accountID, CacheFileType fileType, long endtime, GetCacheFileInfoDelegate cb)
 获取sdk缓存文件信息 More...
 

Member Function Documentation

◆ DeleteCacheFile()

static void NIM.GlobalAPI.DeleteCacheFile ( string  accountID,
CacheFileType  fileType,
long  endtime,
DeleteCacheFileDelegate  cb 
)
static

删除sdk缓存文件

Parameters
accountID查询的账号ID
fileType文件类型
endtime查询时间截止点(查询全部填0)
cb

◆ DetectProxy()

static void NIM.GlobalAPI.DetectProxy ( NIMProxyType  type,
string  host,
int  port,
string  user,
string  password,
NimProxyDetectionDelegate  cb 
)
static

测试代理

Parameters
type代理类型
host代理地址
port代理端口
user代理用户名
password代理密码
cb

◆ FreeBuffer()

static void NIM.GlobalAPI.FreeBuffer ( IntPtr  data)
static

释放SDK内部分配的内存

Parameters
data由SDK内部分配的内存

◆ FreeStringBuffer()

static void NIM.GlobalAPI.FreeStringBuffer ( IntPtr  str)
static

释放SDK内部分配的内存

Parameters
str由SDK内部分配内存的字符串

◆ GetCacheFileInfo()

static void NIM.GlobalAPI.GetCacheFileInfo ( string  accountID,
CacheFileType  fileType,
long  endtime,
GetCacheFileInfoDelegate  cb 
)
static

获取sdk缓存文件信息

Parameters
accountID查询的账号ID
fileType文件类型
endtime查询时间截止点(查询全部填0)
cb

◆ RegExceptionReportCb()

static void NIM.GlobalAPI.RegExceptionReportCb ( nim_sdk_exception_cb_func  cb)
static

注册输出系统环境异常的回调

Parameters
cb

◆ SetProxy()

static void NIM.GlobalAPI.SetProxy ( NIMProxyType  type,
string  host,
int  port,
string  user,
string  password 
)
static

设置SDK统一的网络代理。不需要代理时,type设置为kNIMProxyNone,其余参数都传空字符串(端口设为0)。有些代理不需要用户名和密码,相应参数也传空字符串

Parameters
type
host
port
user
password

◆ SetSdkLogCallback()

static void NIM.GlobalAPI.SetSdkLogCallback ( NimWriteLogDelegate  cb)
static