NIM PC Cross Platform SDK
nim_client.h
Go to the documentation of this file.
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
108NIM_SDK_DLL_API void nim_client_logout(enum NIMLogoutType logout_type,
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
155NIM_SDK_DLL_API void nim_client_reg_kickout_cb(const char* json_extension, nim_json_transport_cb_func cb, const void* user_data);
156
164NIM_SDK_DLL_API void nim_client_reg_disconnect_cb(const char* json_extension, nim_json_transport_cb_func cb, const void* user_data);
165
173NIM_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);
174
183NIM_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);
184
194NIM_SDK_DLL_API void nim_client_reg_sync_multiport_push_config_cb(const char* json_extension,
196 const void* user_data);
197
210NIM_SDK_DLL_API void nim_client_set_multiport_push_config(const char* switch_content,
211 const char* json_extension,
213 const void* user_data);
214
222NIM_SDK_DLL_API void nim_client_get_multiport_push_config(const char* json_extension,
224 const void* user_data);
225
230NIM_SDK_DLL_API const char* const nim_client_version();
231
236NIM_SDK_DLL_API const char* const nim_client_current_user_account();
237
252NIM_SDK_DLL_API void nim_client_get_server_current_time(bool calc_local,
254 const char* json_extension,
255 const void* user_data);
256
257#ifdef __cplusplus
258};
259#endif //__cplusplus
260#endif // NIM_SDK_DLL_API_NIM_CLIENT_H_
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 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_relogin_request_token_cb_func)(char *&auth_token, uint32_t *length, const char *json_params, const void *user_data)
Definition: nim_global_def.h:40
void(* nim_json_transport_cb_func)(const char *json_params, const void *user_data)
Definition: nim_global_def.h:30
NIM SDK 及 NIM ChatRoom SDK 公用头文件