NEAuthService
@objcMembers
public class NEAuthService : NEBaseService
鉴权服务
-
登录鉴权
Declaration
Swift
public func login(account: String, token: String, callback: NECallback<AnyObject>? = nil)Parameters
account账号
token令牌
callback回调
-
退出登录
Declaration
Swift
public func logout(_ callback: NECallback<AnyObject>? = nil)Parameters
callback回调
-
添加鉴权事件监听
Declaration
Swift
public func addAuthListener(_ listener: NEAuthListener) -
删除鉴权事件监听
Declaration
Swift
public func removeAuthListener(_ listener: NEAuthListener) -
查询当前登录状态
Declaration
Swift
public var isLoggedIn: Bool { get } -
当前成员Id
Declaration
Swift
public var userUuid: String? { get }
NEAuthService Class Reference