NIM 跨平台 C++ SDK
Toggle main menu visibility
首页
相关页面
命名空间
命名空间列表
命名空间成员
全部
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
函数
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
变量
_
a
c
d
g
h
i
k
l
m
n
p
s
t
v
类型定义
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
枚举
a
c
e
m
n
o
p
s
t
u
v
枚举值
a
b
c
d
i
k
n
o
r
s
u
v
类
类列表
类索引
类继承关系
类成员
全部
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
函数
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
变量
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
类型定义
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
枚举
枚举值
a
d
k
m
n
t
相关函数
_
a
b
c
m
o
p
r
s
u
v
文件
文件列表
文件成员
全部
_
a
b
c
d
e
f
h
i
j
k
l
n
o
p
q
s
t
u
w
函数
c
i
n
p
变量
f
h
i
k
o
s
t
w
类型定义
b
h
j
n
q
u
枚举
b
c
l
n
枚举值
a
b
c
k
l
n
s
t
宏定义
_
a
d
e
f
i
j
n
p
t
u
•
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
页
载入中...
搜索中...
未找到
nim_tools_def.h
浏览该文件的文档.
1
8
#ifndef NIM_SDK_DLL_EXPORT_HEADERS_NIM_TOOLS_DEF_H_
9
#define NIM_SDK_DLL_EXPORT_HEADERS_NIM_TOOLS_DEF_H_
10
11
#include "
public_defines.h
"
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
17
enum
NIMAppDataType
{
19
kNIMAppDataTypeUnknownOtherRes
= 0,
21
kNIMAppDataTypeImage
= 1,
23
kNIMAppDataTypeAudio
= 2,
25
kNIMAppDataTypeVideo
= 3,
26
};
27
32
static
const
char
*
kNIMTransAudioKeyMime
=
"mime"
;
34
static
const
char
*
kNIMTransAudioKeySample
=
"samp"
;
36
static
const
char
*
kNIMTransAudioKeyAudioUrl
=
"url"
;
38
static
const
char
*
kNIMTransAudioKeyDuration
=
"dur"
;
// Trans Audio Msg Info Keys
40
49
typedef
void (*
nim_tool_get_audio_text_cb_func
)(
int
rescode,
const
char
* text,
const
char
* json_extension,
const
void
* user_data);
50
63
typedef
void (*
nim_tool_filter_client_antispam_cb_func
)(
bool
succeed,
int
ret,
const
char
* text,
const
char
* json_extension,
const
void
* user_data);
64
71
typedef
void (*
nim_tool_sdk_log_cb_func
)(
const
char
* log_content,
const
void
* user_data);
72
79
typedef
void (*
nim_tool_sdk_collect_log_cb_func
)(
char
** log_files, uint64_t* length,
const
void
* user_data);
80
81
#ifdef __cplusplus
82
};
83
#endif
//__cplusplus
84
#endif
// NIM_SDK_DLL_EXPORT_HEADERS_NIM_TOOLS_DEF_H_
kNIMTransAudioKeyAudioUrl
static const char * kNIMTransAudioKeyAudioUrl
string 语音url
Definition:
nim_tools_def.h:36
nim_tool_get_audio_text_cb_func
void(* nim_tool_get_audio_text_cb_func)(int rescode, const char *text, const char *json_extension, const void *user_data)
Definition:
nim_tools_def.h:49
NIMAppDataType
NIMAppDataType
Definition:
nim_tools_def.h:17
kNIMAppDataTypeImage
@ kNIMAppDataTypeImage
图片消息文件
Definition:
nim_tools_def.h:21
kNIMAppDataTypeUnknownOtherRes
@ kNIMAppDataTypeUnknownOtherRes
其他资源文件(除了消息历史文件和已知类型之外的消息数据缓存文件)
Definition:
nim_tools_def.h:19
kNIMAppDataTypeAudio
@ kNIMAppDataTypeAudio
语音消息文件
Definition:
nim_tools_def.h:23
kNIMAppDataTypeVideo
@ kNIMAppDataTypeVideo
视频消息文件
Definition:
nim_tools_def.h:25
kNIMTransAudioKeyDuration
static const char * kNIMTransAudioKeyDuration
long 语音时长,毫秒
Definition:
nim_tools_def.h:38
nim_tool_filter_client_antispam_cb_func
void(* nim_tool_filter_client_antispam_cb_func)(bool succeed, int ret, const char *text, const char *json_extension, const void *user_data)
Definition:
nim_tools_def.h:63
kNIMTransAudioKeySample
static const char * kNIMTransAudioKeySample
string 语音采样率
Definition:
nim_tools_def.h:34
kNIMTransAudioKeyMime
static const char * kNIMTransAudioKeyMime
string 语音类型
Definition:
nim_tools_def.h:32
nim_tool_sdk_collect_log_cb_func
void(* nim_tool_sdk_collect_log_cb_func)(char **log_files, uint64_t *length, const void *user_data)
SDK 日志上报时用户层指定的要上报的日志文件回调
Definition:
nim_tools_def.h:79
nim_tool_sdk_log_cb_func
void(* nim_tool_sdk_log_cb_func)(const char *log_content, const void *user_data)
Definition:
nim_tools_def.h:71
public_defines.h
NIM SDK 及 NIM ChatRoom SDK 公用头文件
include
nim_tools_def.h
制作者
1.9.6