public interface ILoginAdapter
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getSessionData()
返回当前会话信息
|
java.lang.String |
getSessionId()
获取当前会话ID
|
UserInfo |
getUserData()
返回用户信息
|
void |
init(java.lang.String env)
Deprecated.
|
boolean |
isLogin()
是否已经登录
|
void |
login(ILoginCallback callback)
登录
|
void |
logout(ILogoutCallback callback)
登出
|
void |
refreshSession(boolean force,
IRefreshSessionCallback refreshSessionCallback)
刷新当前会话
|
void |
registerLoginListener(ILoginStatusChangeListener listener)
注册全局登录状态监听
|
void |
setIsDebuggable(boolean debuggable)
是否开启调试
|
void |
unRegisterLoginListener(ILoginStatusChangeListener listener)
移除全局登录状态监听
|
@Deprecated void init(java.lang.String env)
void setIsDebuggable(boolean debuggable)
void login(ILoginCallback callback)
callback
- 登录结果回调void logout(ILogoutCallback callback)
callback
- 登出结果回调boolean isLogin()
java.lang.Object getSessionData()
java.lang.String getSessionId()
void refreshSession(boolean force, IRefreshSessionCallback refreshSessionCallback)
force
- 是否需要强刷当前会话refreshSessionCallback
- 刷新Session监听回调接口 IRefreshSessionCallback
void registerLoginListener(ILoginStatusChangeListener listener)
listener
- 登录状态监听回调 ILoginStatusChangeListener
void unRegisterLoginListener(ILoginStatusChangeListener listener)
listener
- 登录状态监听回调 ILoginStatusChangeListener