NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
v2_nim_login_service.hpp
浏览该文件的文档.
1#ifndef V2_NIM_LOGIN_SERVICE_H
2#define V2_NIM_LOGIN_SERVICE_H
3#include "v2_nim_internal.hpp"
4namespace v2 {
15public:
37 virtual void login(nstd::string accountId,
38 nstd::string token,
39 V2NIMLoginOption option,
41 V2NIMFailureCallback failure) = 0;
42
57 virtual void logout(V2NIMSuccessCallback<void> success, V2NIMFailureCallback failure) = 0;
58
66
74
82
90
109
117
125
133
150 V2NIMFailureCallback failure) = 0;
151
165
186 virtual void addLoginListener(V2NIMLoginListener listener) = 0;
187
198 virtual void removeLoginListener(V2NIMLoginListener listener) = 0;
199
221
233};
234} // namespace v2
235
236#endif
Definition: ne_stl_continuous_container.h:15
Definition: ne_stl_string.h:19
登录服务
Definition: v2_nim_login_service.hpp:14
virtual nstd::vector< V2NIMLoginClient > getLoginClients()=0
获取登录客户端列表
virtual nstd::vector< V2NIMDataSyncDetail > getDataSync()=0
获取数据同步状态
virtual void addLoginDetailListener(V2NIMLoginDetailListener listener)=0
添加登录详情监听
virtual nstd::optional< V2NIMKickedOfflineDetail > getKickedOfflineDetail()=0
获取被踢下线原因
virtual void kickOffline(V2NIMLoginClient client, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
踢掉登录客户端下线
virtual nstd::optional< V2NIMLoginClient > getCurrentLoginClient()=0
获取当前登录终端相关信息,在登录成功后才能获取,否则内容为空
virtual void getChatroomLinkAddress(nstd::string roomId, V2NIMSuccessCallback< nstd::vector< nstd::string > > success, V2NIMFailureCallback failure)=0
获取聊天室 link 地址
virtual void removeLoginListener(V2NIMLoginListener listener)=0
移除登录监听器
virtual void removeLoginDetailListener(V2NIMLoginDetailListener listener)=0
移除登录详情监听
virtual void setReconnectDelayProvider(V2NIMReconnectDelayProvider provider)=0
设置获取重连延时回调
virtual void logout(V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
登出接口
virtual nstd::string getLoginUser()=0
获取当前登录用户
virtual V2NIMConnectStatus getConnectStatus()=0
获取连接状态
virtual void login(nstd::string accountId, nstd::string token, V2NIMLoginOption option, V2NIMSuccessCallback< void > success, V2NIMFailureCallback failure)=0
登录接口
virtual void addLoginListener(V2NIMLoginListener listener)=0
注册登录监听器
virtual V2NIMLoginStatus getLoginStatus()=0
获取登录状态
通用成功
Definition: v2_nim_def_callback.hpp:7
Definition: v2_nim_ai_service.hpp:4
V2NIMLoginStatus
Definition: v2_nim_def_enum.hpp:1176
V2NIMConnectStatus
Definition: v2_nim_def_enum.hpp:1205
Definition: ne_stl_optional.h:16
Definition: ne_stl_bind.h:132
Definition: v2_nim_def_struct.hpp:1155
Definition: v2_nim_def_callback.hpp:57
Definition: v2_nim_def_callback.hpp:40
Definition: v2_nim_def_struct.hpp:1138