GWIoTApi
Toggle table of contents
1.2.1
common
Platform filter
common
Switch theme
Search in API
GWIoTApi
GWIoTApi
/
com.gw.gwiotapi.components.cross_platform
/
IAccountManagerComponent
IAccount
Manager
Component
interface
IAccountManagerComponent
:
IComponent
Inheritors
GWIoT
GWPlugin
Members
Properties
account
Event
Link copied to clipboard
abstract
val
accountEvent
:
MutableLiveEvent
<
AccountEvent
>
账号异常事件,如token过期、账号已被注销等
is
Login
Link copied to clipboard
abstract
val
isLogin
:
LiveData
<
Boolean
>
是否已经登录
user
Link copied to clipboard
abstract
val
user
:
LiveData
<
User
?
>
当前登录的用户信息
Functions
login
Link copied to clipboard
abstract
fun
login
(
accessInfo
:
IUserAccessInfo
)
abstract
fun
login
(
c2c
:
UserC2CInfo
)
abstract
suspend
fun
login
(
account
:
AccountType
,
password
:
String
)
:
GWResult
<
User
>
登录账号
logout
Link copied to clipboard
abstract
suspend
fun
logout
(
)
:
GWResult
<
Unit
>
登出账号
modify
Password
Link copied to clipboard
abstract
suspend
fun
modifyPassword
(
oldPassword
:
String
,
newPassword
:
String
)
:
GWResult
<
Unit
>
修改密码
modify
User
Info
Link copied to clipboard
abstract
suspend
fun
modifyUserInfo
(
nick
:
String
?
,
avatarUrl
:
String
?
)
:
GWResult
<
User
>
修改用户信息
refresh
User
Info
Link copied to clipboard
abstract
suspend
fun
refreshUserInfo
(
)
:
GWResult
<
User
>
刷新用户信息