public static enum NetworkRequest.Type extends Enum<NetworkRequest.Type>
Enum Constant and Description |
---|
BACKGROUND_REQUEST |
LISTEN |
NONE |
REQUEST |
TRACK_DEFAULT |
Modifier and Type | Method and Description |
---|---|
static NetworkRequest.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkRequest.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkRequest.Type NONE
public static final NetworkRequest.Type LISTEN
public static final NetworkRequest.Type TRACK_DEFAULT
public static final NetworkRequest.Type REQUEST
public static final NetworkRequest.Type BACKGROUND_REQUEST
public static NetworkRequest.Type[] values()
for (NetworkRequest.Type c : NetworkRequest.Type.values()) System.out.println(c);
public static NetworkRequest.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null