public class WifiApUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTRA_PREVIOUS_WIFI_AP_STATE |
static java.lang.String |
EXTRA_WIFI_AP_STATE |
static java.lang.String |
WIFI_AP_STATE_CHANGED_ACTION |
static int |
WIFI_AP_STATE_DISABLED |
static int |
WIFI_AP_STATE_DISABLING |
static int |
WIFI_AP_STATE_ENABLED |
static int |
WIFI_AP_STATE_ENABLING |
static int |
WIFI_AP_STATE_FAILED |
Modifier and Type | Method and Description |
---|---|
static WifiApUtil |
createInstance(WifiManager mgr) |
static java.lang.String |
getTextForWifiState(int wifiState) |
WifiConfiguration |
getWifiApConfiguration() |
int |
getWifiApState() |
int |
getWifiAPState()
Gets the wifi state code state.
|
static boolean |
isApSupported() |
boolean |
isWifiApEnabled() |
boolean |
setWifiApEnabled(WifiConfiguration config,
boolean enabled) |
public static final java.lang.String WIFI_AP_STATE_CHANGED_ACTION
public static final int WIFI_AP_STATE_DISABLED
public static final int WIFI_AP_STATE_DISABLING
public static final int WIFI_AP_STATE_ENABLED
public static final int WIFI_AP_STATE_ENABLING
public static final int WIFI_AP_STATE_FAILED
public static final java.lang.String EXTRA_PREVIOUS_WIFI_AP_STATE
public static final java.lang.String EXTRA_WIFI_AP_STATE
public static boolean isApSupported()
public static WifiApUtil createInstance(WifiManager mgr)
mgr
- android's wifi manager servicepublic boolean isWifiApEnabled()
public int getWifiApState()
public WifiConfiguration getWifiApConfiguration()
public boolean setWifiApEnabled(WifiConfiguration config, boolean enabled)
public static java.lang.String getTextForWifiState(int wifiState)
wifiState
- wifi state codepublic int getWifiAPState()