- <init>
Creates a new instance to build a JobRequest. Note that the tag doesn't need to
be unique. Each crea
- build
- setPeriodic
Specify that this job should recur with the provided interval and flex, not more
than once per perio
- setRequiredNetworkType
Set some description of the kind of network type your job needs to have. Not
calling this function m
- setRequiresCharging
Specify that to run this job, the device needs to be plugged in. The default is
set to false.
Note
- setRequiresDeviceIdle
Specify that to run, the job needs the device to be in idle mode. This defaults
to false. Idle mode
- setExecutionWindow
Set the time window when the job will be run. Note that it's mandatory to set a
time for one-off tas
- setExtras
Set optional extras. This is persisted, so only primitive types are allowed.
- setExact
Specify that the job should run at an exact time. This type of job must only be
used for situations
- setRequirementsEnforced
It's possible to set several requirements for a job, however, not all of them
need to be considered
- addExtras
Adds optional extras. This is persisted, so only primitive types are allowed.
This method overrides
- equals