Added in API level 21
JobInfo
public
class
JobInfo
extends Object
implements
Parcelable
| java.lang.Object | |
| ↳ | android.app.job.JobInfo |
Container of data passed to the JobScheduler fully encapsulating the
parameters required to schedule work against the calling application. These are constructed
using the JobInfo.Builder.
The goal here is to provide the scheduler with high-level semantics about the work you want to
accomplish.
Prior to Android version Build.VERSION_CODES.Q, you had to specify at least one
constraint on the JobInfo object that you are creating. Otherwise, the builder would throw an
exception when building. From Android version Build.VERSION_CODES.Q and onwards, it is
valid to schedule jobs with no constraints.
Summary
Nested classes | |
|---|---|
| |