@Deprecated
  public void setConnectionStatus(boolean isConnected) {
    setConnectionStatus(isConnected ? NetworkInfo.State.CONNECTED : NetworkInfo.State.DISCONNECTED);
  }
@Deprecated
  public void setConnectionStatus(boolean isConnected) {
    setConnectionStatus(isConnected ? NetworkInfo.State.CONNECTED : NetworkInfo.State.DISCONNECTED);
  }
@ Deprecated public void setConnectionStatus ( boolean isConnected ) { setConnectionStatus ( isConnected ? NetworkInfo . State . CONNECTED : NetworkInfo . State . DISCONNECTED ) ; }
Sets up the return value of {@link #isConnectedOrConnecting()}, {@link #isConnected()}, and
{@link #getState()}. If the input is true, state will be {@link NetworkInfo.State#CONNECTED},
else it will be {@link NetworkInfo.State#DISCONNECTED}.

@param isConnected the value that {@link #isConnectedOrConnecting()} and {@link #isConnected()}
will return.
@deprecated use {@link #setConnectionStatus(NetworkInfo.State)} instead
Sets up the return value of { @link #isConnectedOrConnecting () } { @link #isConnected () } and { @link #getState () } . If the input is true state will be { @link NetworkInfo . State#CONNECTED } else it will be { @link NetworkInfo . State#DISCONNECTED } .