-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum NetworkInfo.Connectivity extends Enum<NetworkInfo.Connectivity>
The type of connectivity currently available.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NETWORK_OTHERThe network is connected using an other connection type.
NETWORK_CELLULARThe network is connected using a cellular connection.
NETWORK_MOBILE_OTHERThe network is connected using a cellular connection with a unknown technology.
NETWORK_5GThe network is connected using a 5G connection.
NETWORK_4GThe network is connected using a 4G connection.
NETWORK_3GThe network is connected using a 3G connection.
NETWORK_2GThe network is connected using a 2G connection.
NETWORK_BLUETOOTHThe network is connected using a Bluetooth connection.
NETWORK_WIMAXThe network is connected using a WiMax connection.
NETWORK_WIFIThe network is connected using a WiFi connection.
NETWORK_ETHERNETThe network is connected using a Ethernet connection.
NETWORK_NOT_CONNECTEDThe network is not connected.
-
Method Summary
Modifier and Type Method Description final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
getOrdinal
final Integer getOrdinal()
-
-
-
-