Code example for WebView

Methods: setNetworkAvailable

0
    } else { 
      isNetworkUp = false;
    } 
     
    if (view != null) {
      view.setNetworkAvailable(isNetworkUp);
    } 
  } 
   
  public boolean isNetworkUp() { 
    return isNetworkUp;
  } 
   
  public boolean isConnected() { 
    return isConnected;
  } 
 
  public void onPause() { 
    // unregister network state listener 
    activity.unregisterReceiver(receiver);
  }