AuthService class
Constructors
-
AuthService(MethodChannel _methodChannel, Map<
String, Handler> handlerMap)
Properties
-
callbacks
↔ Map<
String, dynamic> -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- receiptIdKey → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildArguments<
T> ({Map? arg, Callback< T> ? callback}) → Map<String, dynamic> -
build arguments for methodChannel
inherited
-
getCurrentAccount(
) → Future< String?> - get current account 这个方法获取的账号是 dart 层之前登录过的账号 不是实时的从nim-sdk中查询
-
getLoginInfo(
) → Future< AuthInfo?> - 这个方法是实时从nim-sdk中获取的
-
isLogin(
) → Future< bool> - if user has login
-
kickOtherClient(
OnlineClient onlineClient, Callback callback) → Future< void> - kick off other client
-
login(
AuthInfo authInfo, Callback callback) → Future< void> - login
-
logout(
) → Future< void> - logout
-
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