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
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JobInfo.BackoffPolicy | Linear: retry_time(failure_time, t) = failure_time + initial_retry_delay * t, t >= 1 Expon: retry_time(failure_time, t) = failure_time + initial_retry_delay ^ t, t >= 1 | ||||||||||
JobInfo.Builder | Builder class for constructing JobInfo objects. |
||||||||||
JobInfo.NetworkType |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
See
JobInfo.BackoffPolicy for an explanation of the values this field
can take. | |||||||||||
Bundle of extras which are returned to your application at execution time.
| |||||||||||
Unique job id associated with this class.
| |||||||||||
The amount of time the JobScheduler will wait before rescheduling a failed job.
| |||||||||||
Set to the interval between occurrences of this job.
| |||||||||||
Set for a job that does not recur periodically, to specify a delay after which the job
will be eligible for execution.
| |||||||||||
See
JobInfo.NetworkType for a description of this value. | |||||||||||
Name of the service endpoint that will be called back into by the JobScheduler.
| |||||||||||
Track whether this job will repeat with a given period.
| |||||||||||
Whether this job needs the device to be plugged in.
| |||||||||||
Whether this job needs the device to be in an Idle maintenance window.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
See JobInfo.BackoffPolicy
for an explanation of the values this field
can take. This defaults to exponential.
Bundle of extras which are returned to your application at execution time.
Unique job id associated with this class. This is assigned to your job by the scheduler.
The amount of time the JobScheduler will wait before rescheduling a failed job. This value will be increased depending on the backoff policy specified at job creation time. Defaults to 5 seconds.
Set to the interval between occurrences of this job. This value is not set if the job does not recur periodically.
See setOverrideDeadline(long)
. This value is not set if the job recurs
periodically.
Set for a job that does not recur periodically, to specify a delay after which the job will be eligible for execution. This value is not set if the job recurs periodically.
Name of the service endpoint that will be called back into by the JobScheduler.
Track whether this job will repeat with a given period.
Whether this job needs the device to be plugged in.
Whether this job needs the device to be in an Idle maintenance window.
Flatten this object in to a Parcel.
out | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|