public final class Constraint
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Constraint.JobConstraint
A tooling type-hint for any of the valid constraint values.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEVICE_CHARGING
Only run the job when the device is currently charging.
|
static int |
DEVICE_IDLE
Only run the job when the device is idle.
|
static int |
ON_ANY_NETWORK
Only run the job when a network connection is available.
|
static int |
ON_UNMETERED_NETWORK
Only run the job when an unmetered network is available.
|
public static final int ON_UNMETERED_NETWORK
public static final int ON_ANY_NETWORK
ON_UNMETERED_NETWORK is provided, ON_UNMETERED_NETWORK will take precedence.public static final int DEVICE_CHARGING
public static final int DEVICE_IDLE