NetworkInfo.NetworkParams.PrivateDnsState

public enum NetworkInfo.NetworkParams.PrivateDnsState


Whether private DNS is used on the network.

Summary

Enum Values

ACTIVE

Private DNS is active on the network.

INACTIVE

Private DNS is not active on the network.

PRIVATE_DNS_STATE_UNSPECIFIED

This value is disallowed.

Public methods

static NetworkInfo.NetworkParams.PrivateDnsState

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

static NetworkInfo.NetworkParams.PrivateDnsState[]

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

Public methods

valueOf

public static NetworkInfo.NetworkParams.PrivateDnsState 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.PrivateDnsState

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.PrivateDnsState[] 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.PrivateDnsState[]

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