Package 

Enum NetworkInfo.Connectivity

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NETWORK_OTHER

      The network is connected using an other connection type.

      NETWORK_CELLULAR

      The network is connected using a cellular connection.

      NETWORK_MOBILE_OTHER

      The network is connected using a cellular connection with a unknown technology.

      NETWORK_5G

      The network is connected using a 5G connection.

      NETWORK_4G

      The network is connected using a 4G connection.

      NETWORK_3G

      The network is connected using a 3G connection.

      NETWORK_2G

      The network is connected using a 2G connection.

      NETWORK_BLUETOOTH

      The network is connected using a Bluetooth connection.

      NETWORK_WIMAX

      The network is connected using a WiMax connection.

      NETWORK_WIFI

      The network is connected using a WiFi connection.

      NETWORK_ETHERNET

      The network is connected using a Ethernet connection.

      NETWORK_NOT_CONNECTED

      The network is not connected.

    • Method Summary

      Modifier and Type Method Description
      final String getName()
      final Integer getOrdinal()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait