|
cn.3tee.avd_SDK-C
3.2.0
|
类 | |
| struct | AVDMessage |
| 聊天消息结构. 更多... | |
| struct | Chat_Callback |
| 房间中聊天模块回调接口. 更多... | |
类型定义 | |
| typedef struct Chat_Callback * | LPChat_Callback |
| 房间中聊天模块回调接口. 更多... | |
函数 | |
| RT_API_EXPORT Result | avd_chat_init (AVDHandle roomHandle, LPChat_Callback cb, AVDHandle &chatHandle) |
| 初始化聊天模块接口 更多... | |
| RT_API_EXPORT Result | avd_chat_uninit (AVDHandle chatHandle) |
| 反初始化聊天模块接口 更多... | |
| RT_API_EXPORT Result | avd_chat_sendPublicMessage (AVDHandle chatHandle, const char *msg, uint32 len) |
| 发送公聊消息 更多... | |
| RT_API_EXPORT Result | avd_chat_sendPrivateMessage (AVDHandle chatHandle, const char *msg, uint32 len, const char *toUserId) |
| 发送私聊消息 更多... | |
| RT_API_EXPORT Result | avd_chat_getPublicHistoryMessage (AVDHandle chatHandle, AVDBool latest, uint32 begindex, uint32 &ncount, AVDMessage *&messages) |
| 获取公聊历史消息记录 更多... | |
| RT_API_EXPORT Result | avd_chat_getPrivateHistoryMessage (AVDHandle chatHandle, const char *userId, AVDBool latest, uint32 begindex, uint32 &ncount, AVDMessage *&messages) |
| 获取私聊历史消息记录 更多... | |
| typedef struct Chat_Callback* LPChat_Callback |
房间中聊天模块回调接口.
聊天模块回调接口定义了房间中聊天相关的通知。
| RT_API_EXPORT Result avd_chat_getPrivateHistoryMessage | ( | AVDHandle | chatHandle, |
| const char * | userId, | ||
| AVDBool | latest, | ||
| uint32 | begindex, | ||
| uint32 & | ncount, | ||
| AVDMessage *& | messages | ||
| ) |
获取私聊历史消息记录
| [out] | chatHandle | 聊天模块句柄。 |
| [in] | *userId | 聊天对方的用户Id。 |
| [in] | latest | 是否是最新记录(即反序)。 |
| [in] | begindex | 消息起始索引。 |
| [in,out] | ncount | 请求消息数量;实际消息返回数量。 |
| [out] | *&messages | 保存消息列表。 |
| RT_API_EXPORT Result avd_chat_getPublicHistoryMessage | ( | AVDHandle | chatHandle, |
| AVDBool | latest, | ||
| uint32 | begindex, | ||
| uint32 & | ncount, | ||
| AVDMessage *& | messages | ||
| ) |
获取公聊历史消息记录
| [out] | chatHandle | 聊天模块句柄。 |
| [in] | latest | 是否是最新记录(即反序)。 |
| [in] | begindex | 消息起始索引。 |
| [in,out] | ncount | 请求消息数量;实际消息返回数量。 |
| [out] | *&messages | 保存消息列表。 |
| RT_API_EXPORT Result avd_chat_init | ( | AVDHandle | roomHandle, |
| LPChat_Callback | cb, | ||
| AVDHandle & | chatHandle | ||
| ) |
| RT_API_EXPORT Result avd_chat_sendPrivateMessage | ( | AVDHandle | chatHandle, |
| const char * | msg, | ||
| uint32 | len, | ||
| const char * | toUserId | ||
| ) |
发送私聊消息
| [out] | chatHandle | 聊天模块句柄。 |
| [in] | *msg | 消息内容。 |
| [in] | len | 消息内容长度。 |
| [in] | *toUserId | 私聊消息目的用户Id。 |
| RT_API_EXPORT Result avd_chat_sendPublicMessage | ( | AVDHandle | chatHandle, |
| const char * | msg, | ||
| uint32 | len | ||
| ) |
发送公聊消息
| [out] | chatHandle | 聊天模块句柄。 |
| [in] | *msg | 消息内容。 |
| [in] | len | 消息内容长度。 |
| RT_API_EXPORT Result avd_chat_uninit | ( | AVDHandle | chatHandle | ) |
反初始化聊天模块接口
| [out] | chatHandle | 聊天模块句柄。 |
1.8.15