WifiStateChangedListener


interface WifiStateChangedListener
android.net.wifi.WifiManager.WifiStateChangedListener

Listener interface for applications to receive updates about the current Wi-Fi enabled state.

Summary

Public methods
abstract Unit

Called when the Wi-Fi enabled state changes.

Public methods

onWifiStateChanged

abstract fun onWifiStateChanged(state: Int): Unit

Called when the Wi-Fi enabled state changes.

Parameters
state Int: The new Wi-Fi state. Value is android.net.wifi.WifiManager#WIFI_STATE_DISABLING, android.net.wifi.WifiManager#WIFI_STATE_DISABLED, android.net.wifi.WifiManager#WIFI_STATE_ENABLING, android.net.wifi.WifiManager#WIFI_STATE_ENABLED, or android.net.wifi.WifiManager#WIFI_STATE_UNKNOWN