@Deprecated public class NetworkConnectionSetting extends Object
Modifier and Type | Field and Description |
---|---|
int |
value
Deprecated.
|
Constructor and Description |
---|
NetworkConnectionSetting(boolean airplaneMode,
boolean wifi,
boolean data)
Deprecated.
|
NetworkConnectionSetting(int bitmask)
Deprecated.
Instantiate Network Connection Settings with the straight-up bitmask.
|
Modifier and Type | Method and Description |
---|---|
boolean |
airplaneModeEnabled()
Deprecated.
|
boolean |
dataEnabled()
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
Object.equals(Object)
it compares integer bitmask values. |
int |
hashCode()
Deprecated.
|
void |
setAirplaneMode(boolean enable)
Deprecated.
it is used for the switching on/off airplane mode.
|
void |
setData(boolean enable)
Deprecated.
it is used for the switching on/off mobile internet.
|
void |
setWifi(boolean enable)
Deprecated.
it is used for the switching on/off Wi-Fi mode.
|
String |
toString()
Deprecated.
|
boolean |
wifiEnabled()
Deprecated.
|
public NetworkConnectionSetting(boolean airplaneMode, boolean wifi, boolean data)
airplaneMode
- boolean for airplane mode enabled.wifi
- boolean for wifi enabled.data
- boolean for data enabled.public NetworkConnectionSetting(int bitmask)
bitmask
- a straight-up bitmask.public boolean airplaneModeEnabled()
public boolean wifiEnabled()
public boolean dataEnabled()
public void setAirplaneMode(boolean enable)
enable
- if flag that twitches on/off airplane modepublic void setWifi(boolean enable)
enable
- if flag that twitches on/off Wi-Fi modepublic void setData(boolean enable)
enable
- if flag that twitches on/off mobile internetpublic boolean equals(Object obj)
Object.equals(Object)
it compares integer bitmask values.Copyright © 2016. All rights reserved.