flooim
Last updated
Was this helpful?
Last updated
Was this helpful?
⇒ object
⇒ boolean
object
初始化SDK
Kind: static method of
Returns: object
- flooim对象
config
object
SDK初始化设置
config.appid
string
APPID
config.ws
boolean
连接地址前缀是否为ws/wss: true - 连接地址前缀为ws或wss, false - 连接地址前缀为http/https
config.autoLogin
boolean
是否自动登录
config.dnsServer
string
| undefined
DNS服务器地址, 可以不设置,默认为 https://dns.maximtop.com/v2/app_dns
Example
登录
opt
object
opt.name
string
用户名
opt.password
string
密码
二维码登录
opt
object
opt.user_id
number
用户ID
opt.password
string
密码
token登录
opt
object
opt.user_id
number
用户ID
opt.token
string
Token
使用用户ID和密码登录
opt
object
opt.user_id
number
用户ID
opt.password
string
密码
boolean
是否已登录
事件监听
options
可以为事件名,也可以为事件名和事件回调
ext
事件回调,只有options为事件名时需要设置
Example
取消监听
options
可以为事件名,也可以为事件名和事件回调
ext
事件回调,只有options为事件名时需要设置
Example
退出账户
Kind: static method of
Kind: static method of
Kind: static method of
Kind: static method of
Kind: static method of
Returns: boolean
- 是否已登录
Kind: static method of
| Object.<, >
| undefined
Kind: static method of
| Object.<, >
| undefined
Kind: static method of