NetStateUtils

Types

Link copied to clipboard
sealed class WIFIDBM(val strength: Int)

Wifi DBM

Functions

Link copied to clipboard
private fun WifiManager.calculateSignalLevelImpl(rssi: Int, numLevels: Int): Int

Calculate signal level implementation. Click calculateSignalLevel to get the deprecate information

Link copied to clipboard
private fun getHostIp(): String?

Get the host ip.

Link copied to clipboard
fun getIpAddress(context: Context): String?

Get device ip address.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Get wifi signal strength.

Link copied to clipboard
Link copied to clipboard

Convert int to ipv4, for example, -1 will be converted to 255.255.255.255

Link copied to clipboard

Is ether net

Link copied to clipboard

Is mobile net

Link copied to clipboard

Is network available

Link copied to clipboard

Is WIFI

Link copied to clipboard

Convert ipv4 to int, for example, 255.255.255.255 will be converted to -1