isLoggedInBefore method

Future<bool> isLoggedInBefore ()

判断当前是否登录 true 已登录 false 未登录

Implementation

Future<bool> isLoggedInBefore() async{
  Map<String, dynamic> result =
  await _emClientChannel.invokeMethod(EMSDKMethod.isLoggedInBefore);
  if(result['success']){
    return result['isLogged'];
  }
  return false;
}