public static enum WorkManager.Scheduling extends Enum<WorkManager.Scheduling>
WorkManager.schedule(Work, Scheduling)
.Enum Constant and Description |
---|
CANCEL_SCHEDULED
Any other scheduled work equals to this one is removed from scheduling and canceled first, before this work
is scheduled.
|
ENQUEUE
Always schedule the work.
|
IF_NOT_RUNNING
Deprecated.
unused
|
IF_NOT_RUNNING_OR_SCHEDULED
If there is a running or scheduled work equals to this one, then don't schedule the work.
|
IF_NOT_SCHEDULED
If there is a scheduled work equals to this one, then don't schedule the work.
|
Modifier and Type | Field and Description |
---|---|
Work.State |
state |
Modifier and Type | Method and Description |
---|---|
static WorkManager.Scheduling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WorkManager.Scheduling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkManager.Scheduling ENQUEUE
public static final WorkManager.Scheduling CANCEL_SCHEDULED
public static final WorkManager.Scheduling IF_NOT_SCHEDULED
@Deprecated public static final WorkManager.Scheduling IF_NOT_RUNNING
public static final WorkManager.Scheduling IF_NOT_RUNNING_OR_SCHEDULED
public final Work.State state
public static WorkManager.Scheduling[] values()
for (WorkManager.Scheduling c : WorkManager.Scheduling.values()) System.out.println(c);
public static WorkManager.Scheduling 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 nullCopyright © 2015 Nuxeo SA. All rights reserved.