logout static method

Future<bool> logout()

Implementation

static Future<bool> logout() async {
  var result = await TencentImSDKPlugin.v2TIMManager.logout();
  if (result.code == 0) {
    TCICLog.info("IM logout success",actionModule: ActionModule.imSDK.name,actionName: ActionName.logout.name);
    return true;
  }
  TCICLog.error(
    "IM logout failed: code=${result.code}, message=${result.desc}",
    actionModule: ActionModule.imSDK.name,
    actionName: ActionName.logout.name,
  );
  return false;
}