setCheckConnectivityBeforeRequest method

void setCheckConnectivityBeforeRequest(
  1. bool check
)

Set whether to check connectivity before making requests. When enabled, requests will fail immediately if the device is offline.

Implementation

void setCheckConnectivityBeforeRequest(bool check) {
  checkConnectivityBeforeRequest = check;
}