AuthService class Null safety
Constructors
- AuthService()
-
factory
Properties
-
authStatus
→ Stream<
NIMAuthStatusEvent> -
登录状态事件流
read-only
- dynamicTokenProvider ↔ dynamic
-
获取动态登录token提供者
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
-
onlineClients
→ Stream<
List< NIMOnlineClient> > -
多端登录事件流
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
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 non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited