NetworkInfo.NetworkParams.NetworkTransport

public 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 methods

static NetworkInfo.NetworkParams.NetworkTransport

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

static NetworkInfo.NetworkParams.NetworkTransport[]

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

Public methods

valueOf

public static NetworkInfo.NetworkParams.NetworkTransport valueOf(String name)

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

public static NetworkInfo.NetworkParams.NetworkTransport[] values()

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
NetworkInfo.NetworkParams.NetworkTransport[]

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