NIM PC Cross Platform SDK
载入中...
搜索中...
未找到
nim_robot.h 文件参考

智能机器人 接口头文件 更多...

#include "nim_robot_def.h"
#include "public_defines.h"

浏览源代码.

函数

NIM_SDK_DLL_API void nim_robot_reg_changed_callback (const char *json_extension, nim_robot_change_cb_func cb, const void *user_data)
 
NIM_SDK_DLL_API const char * nim_robot_query_all_robots_block (const char *json_extension)
 
NIM_SDK_DLL_API const char * nim_robot_query_robot_by_accid_block (const char *accid, const char *json_extension)
 
NIM_SDK_DLL_API void nim_robot_get_robots_async (int64_t timetag, const char *json_extension, nim_robot_query_cb_func cb, const void *user_data)
 

详细描述

智能机器人 接口头文件

作者
Oleg
日期
2017/06/24

函数说明

◆ nim_robot_get_robots_async()

void nim_robot_get_robots_async ( int64_t  timetag,
const char *  json_extension,
nim_robot_query_cb_func  cb,
const void *  user_data 
)

获取全部机器人信息

参数
[in]timetag时间戳
[in]json_extensionjson扩展参数(备用,目前不需要)
[in]cb回调函数 回调函数定义见nim_robot_def.h
[in]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数cb,不做任何处理!
返回
void

◆ nim_robot_query_all_robots_block()

char * nim_robot_query_all_robots_block ( const char *  json_extension)

获取全部机器人信息(同步接口,堵塞NIM内部线程)

参数
[in]json_extensionjson扩展参数(备用,目前不需要)
返回
char 机器人信息 json string array

◆ nim_robot_query_robot_by_accid_block()

char * nim_robot_query_robot_by_accid_block ( const char *  accid,
const char *  json_extension 
)

获取指定机器人信息(同步接口,堵塞NIM内部线程)

参数
[in]accid机器人accid
[in]json_extensionjson扩展参数(备用,目前不需要)
返回
char 机器人信息 json string

◆ nim_robot_reg_changed_callback()

void nim_robot_reg_changed_callback ( const char *  json_extension,
nim_robot_change_cb_func  cb,
const void *  user_data 
)

注册机器人变更广播通知

参数
[in]json_extensionjson扩展参数(备用,目前不需要)
[in]cbnim_robot_change_cb_func回调函数定义见nim_robot_def.h
[in]user_dataAPP的自定义用户数据,SDK只负责传回给回调函数cb,不做任何处理!
返回
void 无返回值