NetworkInfo.Connectivity - DataDog/dd-sdk-android GitHub Wiki

enum Connectivity : Enum<NetworkInfo.Connectivity>

The type of connectivity currently available.

Entries

NETWORK_NOT_CONNECTED

NETWORK_NOT_CONNECTED

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_ETHERNET

NETWORK_ETHERNET

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_WIFI

NETWORK_WIFI

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_WIMAX

NETWORK_WIMAX

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_BLUETOOTH

NETWORK_BLUETOOTH

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_2G

NETWORK_2G

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_3G

NETWORK_3G

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_4G

NETWORK_4G

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_5G

NETWORK_5G

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_MOBILE_OTHER

NETWORK_MOBILE_OTHER

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_CELLULAR

NETWORK_CELLULAR

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

NETWORK_OTHER

NETWORK_OTHER

Properties

Name Summary
name [androidJvm]val name: String
ordinal [androidJvm]val ordinal: Int

Functions

valueOf

fun valueOf(value: String): NetworkInfo.Connectivity

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
IllegalArgumentException if this enum type has no constant with the specified name

values

fun values(): Array<NetworkInfo.Connectivity>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.