getWifiDBM

Get wifi signal strength.

Return WIFIDBM.NOWIFICONNECT when wifi is disconnected or unable or return WIFIDBM.UNSPECIFIED when can't get the strength of wifi.

When the Build.VERSION.SDK_INT is under Build.VERSION_CODES.S,the signal strength of WIFIDBM.CURRENTDBM is represented by 0-4, otherwise the signal strength of WIFIDBM.CURRENTDBM is represented by 0-WifiManager.getMaxSignalLevel.

Since

0.5.3

Throws

Throw this exception if there is no ACCESS_WIFI_STATE permission.