public static enum JobRequest.NetworkType extends Enum<JobRequest.NetworkType>
Enum Constant and Description |
---|
ANY
Network does not have to be connected.
|
CONNECTED
Network must be connected.
|
METERED
This job requires metered connectivity such as most cellular data networks.
|
NOT_ROAMING
Network must be connected and not roaming, but can be metered.
|
UNMETERED
Network must be connected and unmetered.
|
Modifier and Type | Method and Description |
---|---|
static JobRequest.NetworkType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobRequest.NetworkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobRequest.NetworkType ANY
public static final JobRequest.NetworkType CONNECTED
public static final JobRequest.NetworkType UNMETERED
public static final JobRequest.NetworkType NOT_ROAMING
public static final JobRequest.NetworkType METERED
public static JobRequest.NetworkType[] values()
for (JobRequest.NetworkType c : JobRequest.NetworkType.values()) System.out.println(c);
public static JobRequest.NetworkType 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