public final class JobManager.Config
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowSmallerIntervalsForMarshmallow()
Checks whether a smaller interval and flex are allowed for periodic jobs.
|
boolean |
isGcmApiEnabled() |
boolean |
isVerbose() |
void |
setAllowSmallerIntervalsForMarshmallow(boolean allowSmallerIntervals)
Option to override the minimum period and minimum flex for periodic jobs.
|
void |
setGcmApiEnabled(boolean enabled)
Programmatic switch to disable the GCM API.
|
void |
setVerbose(boolean verbose)
Global switch to enable or disable logging.
|
public boolean isVerbose()
true.public void setVerbose(boolean verbose)
verbose - Whether or not to print all log messages. The default value is true.public boolean isGcmApiEnabled()
true. The default
value is true.public void setGcmApiEnabled(boolean enabled)
false, then the AlarmManager will
be used for Android 4 devices in all cases.enabled - Whether the GCM API should be enabled or disabled. Note that the API is only used,
if the required class dependency is found, the Google Play Services are available
and this setting is true. The default value is true.public boolean isAllowSmallerIntervalsForMarshmallow()
false.public void setAllowSmallerIntervalsForMarshmallow(boolean allowSmallerIntervals)
allowSmallerIntervals - Whether a smaller interval and flex than the minimum values are allowed
for periodic jobs are allowed. The default value is false.