public enum JobApi extends Enum<JobApi>
Enum Constant and Description |
---|
GCM
Uses the
GcmNetworkManager for scheduling jobs. |
V_14
Uses the
AlarmManager for scheduling jobs. |
V_19
Uses the
AlarmManager for scheduling jobs. |
V_21
Uses the
JobScheduler for scheduling jobs. |
V_24
Uses the
JobScheduler for scheduling jobs. |
V_26
Uses the
JobScheduler for scheduling jobs. |
Modifier and Type | Method and Description |
---|---|
static JobApi |
getDefault(Context context) |
(package private) JobProxy |
getProxy(Context context) |
void |
invalidateCachedProxy() |
(package private) boolean |
isFlexSupport() |
boolean |
isSupported(Context context) |
(package private) boolean |
supportsExecutionWindow() |
(package private) boolean |
supportsTransientJobs() |
static JobApi |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobApi[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobApi V_26
JobScheduler
for scheduling jobs.public static final JobApi V_24
JobScheduler
for scheduling jobs.public static final JobApi V_21
JobScheduler
for scheduling jobs.public static final JobApi V_19
AlarmManager
for scheduling jobs.public static final JobApi V_14
AlarmManager
for scheduling jobs.public static final JobApi GCM
GcmNetworkManager
for scheduling jobs.public static JobApi[] values()
for (JobApi c : JobApi.values()) System.out.println(c);
public static JobApi 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 nullboolean supportsExecutionWindow()
boolean isFlexSupport()
boolean supportsTransientJobs()
public boolean isSupported(Context context)
public void invalidateCachedProxy()