| 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. |
| Modifier and Type | Method and Description |
|---|---|
JobProxy |
createProxy(android.content.Context context) |
JobProxy |
getCachedProxy(android.content.Context context) |
static JobApi |
getDefault(android.content.Context context)
Deprecated.
Use
getDefault(Context, boolean) instead. |
static JobApi |
getDefault(android.content.Context context,
boolean gcmEnabled) |
boolean |
isFlexSupport() |
boolean |
isSupported(android.content.Context context) |
boolean |
supportsExecutionWindow() |
static JobApi |
valueOf(java.lang.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_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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean supportsExecutionWindow()
public boolean isFlexSupport()
public boolean isSupported(android.content.Context context)
public JobProxy createProxy(android.content.Context context)
public JobProxy getCachedProxy(android.content.Context context)
@Deprecated public static JobApi getDefault(android.content.Context context)
getDefault(Context, boolean) instead.public static JobApi getDefault(android.content.Context context, boolean gcmEnabled)