WifiManager

Class of android.net.wifi · WifiManager.java · Android's reference

public class WifiManager

Wi-Fi on a device without Wi-Fi: the host's network is wired.

Fields

public static final int WIFI_STATE_DISABLING = 0 source
public static final int WIFI_STATE_DISABLED = 1 source
public static final int WIFI_STATE_ENABLING = 2 source
public static final int WIFI_STATE_ENABLED = 3 source
public static final int WIFI_STATE_UNKNOWN = 4 source
public static final String WIFI_STATE_CHANGED_ACTION = "android.net.wifi.WIFI_STATE_CHANGED" source
public static final String NETWORK_STATE_CHANGED_ACTION = "android.net.wifi.STATE_CHANGE" source
public static final String RSSI_CHANGED_ACTION = "android.net.wifi.RSSI_CHANGED" source
public static final String SCAN_RESULTS_AVAILABLE_ACTION = "android.net.wifi.SCAN_RESULTS" source
public static final String EXTRA_WIFI_STATE = "wifi_state" source

Constructors

public WifiManager() empty body source

Methods

public boolean isWifiEnabled() source
public int getWifiState() source
public boolean setWifiEnabled(boolean enabled) deprecated source
public WifiInfo getConnectionInfo() deprecated source
public boolean startScan() deprecated source
public boolean is5GHzBandSupported() source
public static int calculateSignalLevel(int rssi, int numLevels) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.