public class WifiSettingsStore extends Object
Modifier and Type | Method and Description |
---|---|
int |
getWifiSavedState()
Allow callers to get the Settings.Global.WIFI_SAVED_STATE property.
|
boolean |
handleWifiToggled(boolean wifiEnabled) |
boolean |
isAirplaneModeOn()
Returns true if airplane mode is currently on.
|
boolean |
isScanAlwaysAvailable() |
boolean |
isWifiToggleEnabled() |
void |
setWifiSavedState(int state)
Allow callers to set the Settings.Global.WIFI_SAVED_STATE property.
|
public boolean isWifiToggleEnabled()
public boolean isAirplaneModeOn()
true
if airplane mode is on.public boolean isScanAlwaysAvailable()
public boolean handleWifiToggled(boolean wifiEnabled)
public void setWifiSavedState(int state)
state
- WiFi state to store with the Settings.Global.WIFI_SAVED_STATE property.public int getWifiSavedState()