isLoginBefore method

Future<bool> isLoginBefore()

检查用户是否已登录 Chat 服务。

Return 用户是否已经登录 Chat 服务。

  • true:是;
  • false:否。

Implementation

Future<bool> isLoginBefore() async {
  Map result =
      await ClientChannel.invokeMethod(ChatMethodKeys.isLoggedInBefore);
  try {
    ChatError.hasErrorFromResult(result);
    return result.boolValue(ChatMethodKeys.isLoggedInBefore);
  } on ChatError catch (e) {
    throw e;
  }
}