登录服务
更多...
#include <auth_service.h>
登录服务
在文件 auth_service.h 第 44 行定义.
◆ NEAuthLoginCallback
◆ NEAuthLogoutCallback
◆ NEGetAccountInfoCallback
◆ addAuthListener()
virtual void nem_sdk_interface::NEAuthService::addAuthListener |
( |
NEAuthListener * |
listener | ) |
|
|
pure virtual |
注册登录状态监听器,用于接收登陆状态变更通知
- 参数
-
◆ getAccountInfo()
◆ login() [1/2]
virtual void nem_sdk_interface::NEAuthService::login |
( |
const std::string & |
accountId, |
|
|
const std::string & |
token, |
|
|
const NEAuthLoginCallback & |
cb |
|
) |
| |
|
pure virtual |
登录鉴权。在已登录状态下可以创建和加入会议,但在未登录状态下只能加入会议
- 参数
-
accountId | 登录账号 |
token | 登录令牌 |
cb | 回调接口,该回调不会返回额外的结果数据 |
◆ login() [2/2]
virtual void nem_sdk_interface::NEAuthService::login |
( |
const std::string & |
appKey, |
|
|
const std::string & |
accountId, |
|
|
const std::string & |
token, |
|
|
const NEAuthLoginCallback & |
cb |
|
) |
| |
|
pure virtual |
登录鉴权。在已登录状态下可以创建和加入会议,但在未登录状态下只能加入会议
- 弃用:
- 已废弃
- 参数
-
appKey | 应用的appKey |
accountId | 登录账号 |
token | 登录令牌 |
cb | 回调接口,该回调不会返回额外的结果数据 |
◆ loginAnonymous()
virtual void nem_sdk_interface::NEAuthService::loginAnonymous |
( |
const NEAuthLoginCallback & |
cb | ) |
|
|
pure virtual |
◆ loginWithNEMeeting()
virtual void nem_sdk_interface::NEAuthService::loginWithNEMeeting |
( |
const std::string & |
account, |
|
|
const std::string & |
password, |
|
|
const NEAuthLoginCallback & |
cb |
|
) |
| |
|
pure virtual |
登录鉴权。在已登录状态下可以创建和加入会议,但在未登录状态下只能加入会议
- 参数
-
account | 登录账号 |
password | 登录密码 |
cb | 回调接口,该回调不会返回额外的结果数据 |
◆ loginWithSSOToken()
virtual void nem_sdk_interface::NEAuthService::loginWithSSOToken |
( |
const std::string & |
ssoToken, |
|
|
const NEAuthLoginCallback & |
cb |
|
) |
| |
|
pure virtual |
登录鉴权。在已登录状态下可以创建和加入会议,但在未登录状态下只能加入会议
- 弃用:
- 已废弃
- 参数
-
ssoToken | 单点登录时返回的 token 串 |
cb | 回调接口,该回调不会返回额外的结果数据 |
◆ logout()
virtual void nem_sdk_interface::NEAuthService::logout |
( |
bool |
cleanup = false , |
|
|
const NEAuthLoginCallback & |
cb = nullptr |
|
) |
| |
|
pure virtual |
注销当前已登录的账号
- 参数
-
cleanup | 是否清理账户缓存信息(若清理则调用 tryAutoLogin 将返回失败) |
cb | 回调接口,该回调不会返回额外的结果数据 |
◆ removeAuthListener()
virtual void nem_sdk_interface::NEAuthService::removeAuthListener |
( |
NEAuthListener * |
listener | ) |
|
|
pure virtual |
◆ tryAutoLogin()
该类的文档由以下文件生成: