isNetConnected method

bool isNetConnected()

Implementation

bool isNetConnected() {
  int netConnected = 1 << 3; // 8 联通外网
  int state = net ?? 0;
  if ((netConnected & state) == netConnected) {
    return true;
  }
  return false;
}