NetworkInfo.NetworkParams.NetworkTransport

enum NetworkInfo.NetworkParams.NetworkTransport


Transport used on the network.

Summary

Enum Values

BLUETOOTH

The network uses a Bluetooth transport.

CELLULAR

The network uses a Cellular transport.

ETHERNET

The network uses a Ethernet transport.

LOWPAN

The network uses a LoWPAN transport.

NETWORK_TRANSPORT_UNSPECIFIED

This value is disallowed.

THREAD

The network uses a Thread transport.

USB

The network uses a USB transport.

VPN

The network uses a VPN transport.

WIFI

The network uses a Wi-Fi transport.

WIFI_AWARE

The network uses a Wi-Fi Aware transport.

Public functions

java-static NetworkInfo.NetworkParams.NetworkTransport!
valueOf(name: String!)

Returns the enum constant of this type with the specified name.

java-static Array<NetworkInfo.NetworkParams.NetworkTransport!>!

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

Public functions

valueOf

java-static fun valueOf(name: String!): NetworkInfo.NetworkParams.NetworkTransport!

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.)

Returns
NetworkInfo.NetworkParams.NetworkTransport!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static fun values(): Array<NetworkInfo.NetworkParams.NetworkTransport!>!

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.

Returns
Array<NetworkInfo.NetworkParams.NetworkTransport!>!

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