wifiState property

String? wifiState
getter/setter pair

Controls current state of Wi-Fi and if user can change its state. Possible string values are:

  • "WIFI_STATE_UNSPECIFIED" : Unspecified. Defaults to WIFI_STATE_USER_CHOICE
  • "WIFI_STATE_USER_CHOICE" : User is allowed to enable/disable Wi-Fi.
  • "WIFI_ENABLED" : Wi-Fi is on and the user is not allowed to turn it off. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13.
  • "WIFI_DISABLED" : Wi-Fi is off and the user is not allowed to turn it on. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13.

Implementation

core.String? wifiState;