NEAuthService

interface NEAuthService : NEBaseService

用户鉴权服务

Functions

addAuthListener
Link copied to clipboard
abstract fun addAuthListener(listener: NEAuthListener)
添加鉴权事件监听
login
Link copied to clipboard
abstract fun login(account: String, token: String, callback: NECallback<Unit>? = null)
实名登录
logout
Link copied to clipboard
abstract fun logout(callback: NECallback<Unit>? = null)
退出登录
removeAuthListener
Link copied to clipboard
abstract fun removeAuthListener(listener: NEAuthListener)
移除鉴权事件监听

Properties

isLoggedIn
Link copied to clipboard
abstract val isLoggedIn: Boolean
查询当前登录状态