AuthService class Null safety

Constructors

AuthService()
factory

Properties

authStatus Stream<NIMAuthStatusEvent>
Listen to the login status changes.
read-only
dynamicTokenProvider ↔ dynamic
Get the provider of the dynamic token for login.
read / write
hashCode int
The hash code for this object.
read-only, inherited
onlineClients Stream<List<NIMOnlineClient>>
Listen to multi-device login events.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

kickOutOtherOnlineClient(NIMOnlineClient client) Future<NIMResult<void>>
Force other logged-in devices to go offline. NIMOnlineClient can be obtained from listening to the onlineClients event.
login(NIMLoginInfo loginInfo) Future<NIMResult<void>>
The API for login. Once the API is called successfully, the SDK will automatically connect to the CommsEase server, and then send user information to the server, which will finally return the login result.
logout() Future<NIMResult<void>>
Logout
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