AuthService class

Constructors

AuthService()
factory

Properties

authStatus → Stream<NIMAuthStatusEvent>
登录状态事件流
no setter
dynamicTokenProvider ↔ dynamic
获取动态登录token提供者
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
onlineClients → Stream<List<NIMOnlineClient>>
多端登录事件流
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

kickOutOtherOnlineClient(NIMOnlineClient client) → Future<NIMResult<void>>
踢掉其他在线端 NIMOnlineClient 可以从 onlineClients 事件监听中获取
login(NIMLoginInfo loginInfo) → Future<NIMResult<void>>
登录接口。sdk会自动连接服务器,传递用户信息,返回登录结果。
logout() → Future<NIMResult<void>>
注销登录
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited