NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
nim_client.h
浏览该文件的文档.
1
10#ifndef NIM_SDK_DLL_API_NIM_CLIENT_H_
11#define NIM_SDK_DLL_API_NIM_CLIENT_H_
12
13#include "nim_client_def.h"
14#include "nim_global_def.h"
15
16#include "public_defines.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
28NIM_SDK_DLL_API bool nim_client_init(const char* app_data_dir, const char* app_install_dir, const char* json_extension);
29
35NIM_SDK_DLL_API void nim_client_cleanup(const char* json_extension);
36
44NIM_SDK_DLL_API void nim_client_cleanup2(nim_json_transport_cb_func cb, const char* json_extension, const void* user_data);
45
51NIM_SDK_DLL_API void nim_client_update_apns_token(const char* device_token);
52
77NIM_SDK_DLL_API void nim_client_login(const char* app_key,
78 const char* account,
79 const char* token,
80 const char* json_extension,
82 const void* user_data);
83
89NIM_SDK_DLL_API int nim_client_get_login_state(const char* json_extension);
90
96NIM_SDK_DLL_API void nim_client_relogin(const char* json_extension);
97
109 const char* json_extension,
111 const void* user_data);
112
118NIM_SDK_DLL_API void nim_client_kick_other_client(const char* json_extension);
119
136NIM_SDK_DLL_API void nim_client_reg_auto_relogin_cb(const char* json_extension, nim_json_transport_cb_func cb, const void* user_data);
137
146NIM_SDK_DLL_API void nim_client_reg_relogin_request_token_cb(const char* json_extension, nim_relogin_request_token_cb_func cb, const void* user_data);
147
158 const void* user_data);
159
167NIM_SDK_DLL_API void nim_client_reg_kickout_cb(const char* json_extension, nim_json_transport_cb_func cb, const void* user_data);
168
176NIM_SDK_DLL_API void nim_client_reg_disconnect_cb(const char* json_extension, nim_json_transport_cb_func cb, const void* user_data);
177
185NIM_SDK_DLL_API void nim_client_reg_multispot_login_notify_cb(const char* json_extension, nim_json_transport_cb_func cb, const void* user_data);
186
195NIM_SDK_DLL_API void nim_client_reg_kickout_other_client_cb(const char* json_extension, nim_json_transport_cb_func cb, const void* user_data);
196
208 const void* user_data);
209
223 const char* json_extension,
225 const void* user_data);
226
236 const void* user_data);
237
243
249
266 const char* json_extension,
267 const void* user_data);
268
269#ifdef __cplusplus
270};
271#endif //__cplusplus
272#endif // NIM_SDK_DLL_API_NIM_CLIENT_H_
#define NIM_SDK_DLL_API
Definition: nim_build_config.h:14
NIM_SDK_DLL_API void nim_client_reg_auto_relogin_cb(const char *json_extension, nim_json_transport_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_client_update_apns_token(const char *device_token)
NIM_SDK_DLL_API void nim_client_get_server_current_time(bool calc_local, nim_client_get_server_current_time_cb_func cb, const char *json_extension, const void *user_data)
NIM_SDK_DLL_API void nim_client_cleanup(const char *json_extension)
NIM_SDK_DLL_API void nim_client_get_multiport_push_config(const char *json_extension, nim_client_multiport_push_config_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_client_reg_request_login_extension_cb(const char *json_extension, nim_request_login_extension_cb_func cb, const void *user_data)
NIM_SDK_DLL_API bool nim_client_init(const char *app_data_dir, const char *app_install_dir, const char *json_extension)
NIM_SDK_DLL_API void nim_client_relogin(const char *json_extension)
NIM_SDK_DLL_API void nim_client_reg_kickout_cb(const char *json_extension, nim_json_transport_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_client_reg_sync_multiport_push_config_cb(const char *json_extension, nim_client_multiport_push_config_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_client_set_multiport_push_config(const char *switch_content, const char *json_extension, nim_client_multiport_push_config_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_client_reg_disconnect_cb(const char *json_extension, nim_json_transport_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_client_reg_multispot_login_notify_cb(const char *json_extension, nim_json_transport_cb_func cb, const void *user_data)
NIM_SDK_DLL_API const char *const nim_client_current_user_account()
NIM_SDK_DLL_API void nim_client_cleanup2(nim_json_transport_cb_func cb, const char *json_extension, const void *user_data)
NIM_SDK_DLL_API void nim_client_logout(enum NIMLogoutType logout_type, const char *json_extension, nim_json_transport_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_client_login(const char *app_key, const char *account, const char *token, const char *json_extension, nim_json_transport_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_client_reg_relogin_request_token_cb(const char *json_extension, nim_relogin_request_token_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_client_reg_kickout_other_client_cb(const char *json_extension, nim_json_transport_cb_func cb, const void *user_data)
NIM_SDK_DLL_API void nim_client_kick_other_client(const char *json_extension)
NIM_SDK_DLL_API int nim_client_get_login_state(const char *json_extension)
NIM_SDK_DLL_API const char *const nim_client_version()
SDK接入 接口相关的常量函数等定义头文件
void(* nim_client_multiport_push_config_cb_func)(int rescode, const char *content, const char *json_params, const void *user_data)
Definition: nim_client_def.h:25
void(* nim_client_get_server_current_time_cb_func)(int rescode, bool calc_local, uint64_t time, const void *user_data)
Definition: nim_client_def.h:45
NIMLogoutType
Definition: nim_client_def.h:91
辅助能力 接口相关的常量函数等定义头文件
void(* nim_request_login_extension_cb_func)(char **auth_token, uint32_t *length, const char *json_params, const void *user_data)
Definition: nim_global_def.h:49
void(* nim_json_transport_cb_func)(const char *json_params, const void *user_data)
Definition: nim_global_def.h:29
void(* nim_relogin_request_token_cb_func)(char **auth_token, uint32_t *length, const char *json_params, const void *user_data)
Definition: nim_global_def.h:39
NIM SDK 及 NIM ChatRoom SDK 公用头文件