Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/app/job/JobInfo#nestedclasses) \| [Constants](https://developer.android.com/reference/android/app/job/JobInfo#constants) \| [Inherited Constants](https://developer.android.com/reference/android/app/job/JobInfo#inhconstants) \| [Fields](https://developer.android.com/reference/android/app/job/JobInfo#lfields) \| [Methods](https://developer.android.com/reference/android/app/job/JobInfo#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/app/job/JobInfo#inhmethods)

# JobInfo

*** ** * ** ***


`
public


class
JobInfo
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


implements

https://developer.android.com/reference/android/os/Parcelable


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.app.job.JobInfo |

<br />

*** ** * ** ***

Container of data passed to the `https://developer.android.com/reference/android/app/job/JobScheduler` fully encapsulating the
parameters required to schedule work against the calling application. These are constructed
using the `https://developer.android.com/reference/android/app/job/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 `https://developer.android.com/reference/android/os/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 `https://developer.android.com/reference/android/os/Build.VERSION_CODES#Q` and onwards, it is
valid to schedule jobs with no constraints.

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/app/job/JobInfo.Builder` Builder class for constructing `https://developer.android.com/reference/android/app/job/JobInfo` objects. |
| ` class` | `https://developer.android.com/reference/android/app/job/JobInfo.TriggerContentUri` Information about a content URI modification that a job would like to trigger on. |

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#BACKOFF_POLICY_EXPONENTIAL` Exponentially back-off a failed job. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#BACKOFF_POLICY_LINEAR` Linearly back-off a failed job. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#CATEGORY_APP_UPDATES` Category indicating the job is for performing app updates by a registered app store. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#CATEGORY_NONE` Default category indicating no category is assigned. |
| `long` | `https://developer.android.com/reference/android/app/job/JobInfo#DEFAULT_INITIAL_BACKOFF_MILLIS` Amount of backoff a job has initially by default, in milliseconds. |
| `long` | `https://developer.android.com/reference/android/app/job/JobInfo#MAX_BACKOFF_DELAY_MILLIS` Maximum backoff we allow for a job, in milliseconds. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_BYTES_UNKNOWN` Sentinel value indicating that bytes are unknown. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_ANY` This job requires network connectivity. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_CELLULAR` This job requires network connectivity that is a cellular network. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_METERED` *This constant was deprecated in API level 28. Cellular networks may be unmetered, or Wi-Fi networks may be metered, so this isn't a good way of selecting a specific transport. Instead, use `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_CELLULAR` or `https://developer.android.com/reference/android/net/NetworkRequest.Builder#addTransportType(int)` if your job requires a specific network transport.* |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_NONE` Default. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_NOT_ROAMING` This job requires network connectivity that is not roaming. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_UNMETERED` This job requires network connectivity that is unmetered. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#PRIORITY_DEFAULT` Default value for all regular jobs. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#PRIORITY_HIGH` This task should be ordered ahead of most other tasks. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#PRIORITY_LOW` Low priority. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#PRIORITY_MAX` This task is critical to user experience or functionality and should be run ahead of all other tasks. |
| `int` | `https://developer.android.com/reference/android/app/job/JobInfo#PRIORITY_MIN` Job has minimal value to the user. |

### Inherited constants

From interface `https://developer.android.com/reference/android/os/Parcelable` `int` `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR`

Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that
the Parcelable object's flattened representation includes a file descriptor.


`int` `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: the object being written
is a return value, that is the result of a function such as
"`Parcelable someFunction()`",
"`void someFunction(out Parcelable)`", or
"`void someFunction(inout Parcelable)`".


| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/app/job/JobInfo>` | `https://developer.android.com/reference/android/app/job/JobInfo#CREATOR` |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/app/job/JobInfo#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object o) ` Indicates whether some other object is "equal to" this one. |
| ` int` | ` https://developer.android.com/reference/android/app/job/JobInfo#getBackoffPolicy()() ` Return the backoff policy of this job. |
| ` int` | ` https://developer.android.com/reference/android/app/job/JobInfo#getCategory()() ` |
| ` https://developer.android.com/reference/android/content/ClipData` | ` https://developer.android.com/reference/android/app/job/JobInfo#getClipData()() ` |
| ` int` | ` https://developer.android.com/reference/android/app/job/JobInfo#getClipGrantFlags()() ` |
| ` https://developer.android.com/reference/java/util/Set<https://developer.android.com/reference/java/lang/String>` | ` https://developer.android.com/reference/android/app/job/JobInfo#getDebugTags()() ` |
| ` long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getEstimatedNetworkDownloadBytes()() ` Return the estimated size of download traffic that will be performed by this job, in bytes. |
| ` long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getEstimatedNetworkUploadBytes()() ` Return the estimated size of upload traffic that will be performed by this job, in bytes. |
| ` https://developer.android.com/reference/android/os/PersistableBundle` | ` https://developer.android.com/reference/android/app/job/JobInfo#getExtras()() ` |
| ` long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getFlexMillis()() ` Flex time for this job. |
| ` int` | ` https://developer.android.com/reference/android/app/job/JobInfo#getId()() ` Unique job id associated with this application (uid). |
| ` long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getInitialBackoffMillis()() ` The amount of time the JobScheduler will wait before rescheduling a failed job. |
| ` long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getIntervalMillis()() ` Set to the interval between occurrences of this job. |
| ` long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getMaxExecutionDelayMillis()() ` |
| ` static final long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getMinFlexMillis()() ` Query the minimum flex time allowed for periodic scheduled jobs. |
| ` long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getMinLatencyMillis()() ` Set for a job that does not recur periodically, to specify a delay after which the job will be eligible for execution. |
| ` static final long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getMinPeriodMillis()() ` Query the minimum interval allowed for periodic scheduled jobs. |
| ` long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getMinimumNetworkChunkBytes()() ` Return the smallest piece of data that cannot be easily paused and resumed, in bytes. |
| ` int` | ` https://developer.android.com/reference/android/app/job/JobInfo#getNetworkType()() ` *This method was deprecated in API level 28. This method attempts to map `https://developer.android.com/reference/android/app/job/JobInfo#getRequiredNetwork()` into the set of simple constants, which results in a loss of fidelity. Callers should move to using `https://developer.android.com/reference/android/app/job/JobInfo#getRequiredNetwork()` directly.* |
| ` int` | ` https://developer.android.com/reference/android/app/job/JobInfo#getPriority()() ` |
| ` https://developer.android.com/reference/android/net/NetworkRequest` | ` https://developer.android.com/reference/android/app/job/JobInfo#getRequiredNetwork()() ` Return the detailed description of the kind of network this job requires, or `null` if no specific kind of network is required. |
| ` https://developer.android.com/reference/android/content/ComponentName` | ` https://developer.android.com/reference/android/app/job/JobInfo#getService()() ` Name of the service endpoint that will be called back into by the JobScheduler. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/app/job/JobInfo#getTraceTag()() ` |
| ` https://developer.android.com/reference/android/os/Bundle` | ` https://developer.android.com/reference/android/app/job/JobInfo#getTransientExtras()() ` |
| ` long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getTriggerContentMaxDelay()() ` When triggering on content URI changes, this is the maximum delay we will use before scheduling the job. |
| ` long` | ` https://developer.android.com/reference/android/app/job/JobInfo#getTriggerContentUpdateDelay()() ` When triggering on content URI changes, this is the delay from when a change is detected until the job is scheduled. |
| ` https://developer.android.com/reference/android/app/job/JobInfo.TriggerContentUri` | ` https://developer.android.com/reference/android/app/job/JobInfo#getTriggerContentUris()() ` Which content: URIs must change for the job to be scheduled. |
| ` int` | ` https://developer.android.com/reference/android/app/job/JobInfo#hashCode()() ` Returns a hash code value for the object. |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#isExpedited()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#isImportantWhileForeground()() ` *This method was deprecated in API level 36. Use `https://developer.android.com/reference/android/app/job/JobInfo#isExpedited()` instead.* |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#isPeriodic()() ` Track whether this job will repeat with a given period. |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#isPersisted()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#isPrefetch()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#isRequireBatteryNotLow()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#isRequireCharging()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#isRequireDeviceIdle()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#isRequireStorageNotLow()() ` |
| ` boolean` | ` https://developer.android.com/reference/android/app/job/JobInfo#isUserInitiated()() ` |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/app/job/JobInfo#toString()() ` Returns a string representation of the object. |
| ` void` | ` https://developer.android.com/reference/android/app/job/JobInfo#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel out, int flags) ` Flatten this object in to a Parcel. |

### Inherited methods

From class `

https://developer.android.com/reference/java/lang/Object

` `


https://developer.android.com/reference/java/lang/Object` `
https://developer.android.com/reference/java/lang/Object#clone()()
`

Creates and returns a copy of this object.


`


boolean` `
https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj)
`

Indicates whether some other object is "equal to" this one.


`


void` `
https://developer.android.com/reference/java/lang/Object#finalize()()
`

Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.


`


final

https://developer.android.com/reference/java/lang/Class<?>` `
https://developer.android.com/reference/java/lang/Object#getClass()()
`

Returns the runtime class of this `Object`.


`


int` `
https://developer.android.com/reference/java/lang/Object#hashCode()()
`

Returns a hash code value for the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notify()()
`

Wakes up a single thread that is waiting on this object's
monitor.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#notifyAll()()
`

Wakes up all threads that are waiting on this object's monitor.


`


https://developer.android.com/reference/java/lang/String` `
https://developer.android.com/reference/java/lang/Object#toString()()
`

Returns a string representation of the object.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis)
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*, or until a
certain amount of real time has elapsed.


`


final

void` `
https://developer.android.com/reference/java/lang/Object#wait()()
`

Causes the current thread to wait until it is awakened, typically
by being *notified* or *interrupted*.


From interface `

https://developer.android.com/reference/android/os/Parcelable

` `
abstract


int` `
https://developer.android.com/reference/android/os/Parcelable#describeContents()()
`

Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.


`
abstract


void` `
https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags)
`

Flatten this object in to a Parcel.


## Constants

### BACKOFF_POLICY_EXPONENTIAL

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int BACKOFF_POLICY_EXPONENTIAL
```

Exponentially back-off a failed job. See
`https://developer.android.com/reference/android/app/job/JobInfo.Builder#setBackoffCriteria(long,%20int)`

retry_time(current_time, num_failures) =
current_time + initial_backoff_millis \* 2 \^ (num_failures - 1), num_failures \>= 1

<br />

Constant Value:

1
(0x00000001)


### BACKOFF_POLICY_LINEAR

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int BACKOFF_POLICY_LINEAR
```

Linearly back-off a failed job. See
`https://developer.android.com/reference/android/app/job/JobInfo.Builder#setBackoffCriteria(long,%20int)`
retry_time(current_time, num_failures) =
current_time + initial_backoff_millis \* num_failures, num_failures \>= 1

<br />

Constant Value:

0
(0x00000000)


### CATEGORY_APP_UPDATES

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int CATEGORY_APP_UPDATES
```

Category indicating the job is for performing app updates by a registered app store.


This category can only be used by registered app stores (apps holding the
`https://developer.android.com/reference/android/Manifest.permission#INSTALL_PACKAGES_AS_REGISTERED_APP_STORE` permission)
and will throw a `https://developer.android.com/reference/java/lang/SecurityException` otherwise.


This is a hint to the system. The system may choose relaxed throttling and quota policies for
the jobs marked with this category to make sure the app updates are completed in a timely
manner. This **may** include exemption from app standby buckets, but it is not guaranteed.


This category cannot be combined with `https://developer.android.com/`,
`https://developer.android.com/`, or `https://developer.android.com/`
constraints.
Attempting to set any of these will result in an `https://developer.android.com/reference/java/lang/IllegalArgumentException` when
calling `https://developer.android.com/`.


Requires `https://developer.android.com/reference/android/Manifest.permission#INSTALL_PACKAGES_AS_REGISTERED_APP_STORE`

<br />

Constant Value:

1
(0x00000001)


### CATEGORY_NONE

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static final int CATEGORY_NONE
```

Default category indicating no category is assigned.

<br />

Constant Value:

0
(0x00000000)


### DEFAULT_INITIAL_BACKOFF_MILLIS

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final long DEFAULT_INITIAL_BACKOFF_MILLIS
```

Amount of backoff a job has initially by default, in milliseconds.

<br />

Constant Value:

30000
(0x0000000000007530)


### MAX_BACKOFF_DELAY_MILLIS

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final long MAX_BACKOFF_DELAY_MILLIS
```

Maximum backoff we allow for a job, in milliseconds.

<br />

Constant Value:

18000000
(0x000000000112a880)


### NETWORK_BYTES_UNKNOWN

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int NETWORK_BYTES_UNKNOWN
```

Sentinel value indicating that bytes are unknown.

<br />

Constant Value:

-1
(0xffffffff)


### NETWORK_TYPE_ANY

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int NETWORK_TYPE_ANY
```

This job requires network connectivity.

<br />

Constant Value:

1
(0x00000001)


### NETWORK_TYPE_CELLULAR

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int NETWORK_TYPE_CELLULAR
```

This job requires network connectivity that is a cellular network.

<br />

Constant Value:

4
(0x00000004)


### NETWORK_TYPE_METERED

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int NETWORK_TYPE_METERED
```


**This constant was deprecated
in API level 28.**   

Cellular networks may be unmetered, or Wi-Fi networks may be
metered, so this isn't a good way of selecting a specific
transport. Instead, use `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_CELLULAR` or
`https://developer.android.com/reference/android/net/NetworkRequest.Builder#addTransportType(int)`
if your job requires a specific network transport.

This job requires metered connectivity such as most cellular data
networks.

<br />

Constant Value:

4
(0x00000004)


### NETWORK_TYPE_NONE

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int NETWORK_TYPE_NONE
```

Default.

<br />

Constant Value:

0
(0x00000000)


### NETWORK_TYPE_NOT_ROAMING

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int NETWORK_TYPE_NOT_ROAMING
```

This job requires network connectivity that is not roaming.

<br />

Constant Value:

3
(0x00000003)


### NETWORK_TYPE_UNMETERED

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int NETWORK_TYPE_UNMETERED
```

This job requires network connectivity that is unmetered.

<br />

Constant Value:

2
(0x00000002)


### PRIORITY_DEFAULT

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRIORITY_DEFAULT
```

Default value for all regular jobs. As noted in `https://developer.android.com/reference/android/app/job/JobScheduler`,
these jobs have a general execution time of 10 minutes.
Receives the standard job management policy.

<br />

Constant Value:

300
(0x0000012c)


### PRIORITY_HIGH

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRIORITY_HIGH
```

This task should be ordered ahead of most other tasks. It may be
deferred a little, but if it doesn't run at some point, the user may think
something is wrong. Assuming all constraints remain satisfied
(including ideal system load conditions), these jobs can have an
execution time of at least 4 minutes. Setting all of your jobs to high
priority will not be beneficial to your app and in fact may hurt its
performance in the long run.

<br />

Constant Value:

400
(0x00000190)


### PRIORITY_LOW

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRIORITY_LOW
```

Low priority. The task provides some benefit to users, but is not critical
and is more of a nice-to-have. This is more important than minimum priority
jobs and will be prioritized ahead of them, but may still be deferred in lieu
of higher priority jobs. JobScheduler *may* decide to defer these tasks
while there are higher priority tasks in order to ensure there is sufficient
quota available for the higher priority tasks.
A sample task of low priority: prefetching data the user hasn't requested

<br />

Constant Value:

200
(0x000000c8)


### PRIORITY_MAX

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRIORITY_MAX
```

This task is critical to user experience or functionality
and should be run ahead of all other tasks. Only
`https://developer.android.com/reference/android/app/job/JobInfo.Builder#setExpedited(boolean)` and
`https://developer.android.com/reference/android/app/job/JobInfo.Builder#setUserInitiated(boolean)` can have this priority.


Example tasks of max priority:

- Receiving a text message and processing it to show a notification
- Downloading or uploading some content the user requested to transfer immediately

<br />

<br />

Constant Value:

500
(0x000001f4)


### PRIORITY_MIN

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int PRIORITY_MIN
```

Job has minimal value to the user. The user has absolutely no expectation
or knowledge of this task and it has no bearing on the user's perception of
the app whatsoever. JobScheduler *may* decide to defer these tasks while
there are higher priority tasks in order to ensure there is sufficient quota
available for the higher priority tasks.
A sample task of min priority: uploading analytics

<br />

Constant Value:

100
(0x00000064)


## Fields

### CREATOR

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<JobInfo> CREATOR
```

<br />

<br />

## Public methods

### describeContents

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int describeContents ()
```

Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`,
the return value of this method must include the
`https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### equals

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean equals (Object o)
```

Indicates whether some other object is "equal to" this one.


The `equals` method implements an equivalence relation
on non-null object references:

- It is *reflexive*: for any non-null reference value `x`, `x.equals(x)` should return `true`.
- It is *symmetric*: for any non-null reference values `x` and `y`, `x.equals(y)` should return `true` if and only if `y.equals(x)` returns `true`.
- It is *transitive*: for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`.
- It is *consistent*: for any non-null reference values `x` and `y`, multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the objects is modified.
- For any non-null reference value `x`, `x.equals(null)` should return `false`.


An equivalence relation partitions the elements it operates on
into *equivalence classes*; all the members of an
equivalence class are equal to each other. Members of an
equivalence class are substitutable for each other, at least
for some purposes.

<br />

| Parameters ||
|---|---|
| `o` | `Object`: the reference object with which to compare. <br /> |

| Returns ||
|---|---|
| `boolean` | `true` if this object is the same as the obj argument; `false` otherwise. <br /> |

### getBackoffPolicy

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getBackoffPolicy ()
```

Return the backoff policy of this job.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/app/job/JobInfo#BACKOFF_POLICY_LINEAR` - `https://developer.android.com/reference/android/app/job/JobInfo#BACKOFF_POLICY_EXPONENTIAL` |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setBackoffCriteria(long,%20int)`

### getCategory

Added in [version 37.2](https://developer.android.com/topic/libraries/support-library/revisions)

```
public int getCategory ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | Return the category assigned to this job. Value is one of the following: - `https://developer.android.com/reference/android/app/job/JobInfo#CATEGORY_NONE` - `https://developer.android.com/reference/android/app/job/JobInfo#CATEGORY_APP_UPDATES` |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setCategory(int)`

### getClipData

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ClipData getClipData ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/ClipData` | This value may be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setClipData(android.content.ClipData,%20int)`

### getClipGrantFlags

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getClipGrantFlags ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setClipData(android.content.ClipData,%20int)`

### getDebugTags

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Set<String> getDebugTags ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Set<https://developer.android.com/reference/java/lang/String>` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#addDebugTag(java.lang.String)`

### getEstimatedNetworkDownloadBytes

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getEstimatedNetworkDownloadBytes ()
```

Return the estimated size of download traffic that will be performed by
this job, in bytes.


Value is a non-negative number of bytes.

<br />

| Returns ||
|---|---|
| `long` | Estimated size of download traffic, or `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_BYTES_UNKNOWN` when unknown. Value is a non-negative number of bytes. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setEstimatedNetworkBytes(long,%20long)`

### getEstimatedNetworkUploadBytes

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getEstimatedNetworkUploadBytes ()
```

Return the estimated size of upload traffic that will be performed by
this job, in bytes.


Value is a non-negative number of bytes.

<br />

| Returns ||
|---|---|
| `long` | Estimated size of upload traffic, or `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_BYTES_UNKNOWN` when unknown. Value is a non-negative number of bytes. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setEstimatedNetworkBytes(long,%20long)`

### getExtras

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public PersistableBundle getExtras ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/PersistableBundle` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setExtras(android.os.PersistableBundle)`

### getFlexMillis

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getFlexMillis ()
```

Flex time for this job. Only valid if this is a periodic job. The job can
execute at any time in a window of flex length at the end of the period.

<br />

| Returns ||
|---|---|
| `long` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setPeriodic(long)`
- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setPeriodic(long,%20long)`

### getId

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getId ()
```

Unique job id associated with this application (uid). This is the same job ID
you supplied in the `https://developer.android.com/reference/android/app/job/JobInfo.Builder` constructor.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getInitialBackoffMillis

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getInitialBackoffMillis ()
```

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 30 seconds, minimum is currently 10 seconds.

<br />

| Returns ||
|---|---|
| `long` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setBackoffCriteria(long,%20int)`

### getIntervalMillis

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getIntervalMillis ()
```

Set to the interval between occurrences of this job. This value is **not** set if the
job does not recur periodically.

<br />

| Returns ||
|---|---|
| `long` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setPeriodic(long)`
- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setPeriodic(long,%20long)`

### getMaxExecutionDelayMillis

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getMaxExecutionDelayMillis ()
```

<br />

<br />

| Returns ||
|---|---|
| `long` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setOverrideDeadline(long)`

### getMinFlexMillis

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final long getMinFlexMillis ()
```

Query the minimum flex time allowed for periodic scheduled jobs. Attempting
to declare a shorter flex time than this when scheduling such a job will
result in this amount as the effective flex time for the job.

<br />

| Returns ||
|---|---|
| `long` | The minimum available flex time for scheduling periodic jobs, in milliseconds. <br /> |

### getMinLatencyMillis

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getMinLatencyMillis ()
```

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.

<br />

| Returns ||
|---|---|
| `long` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setMinimumLatency(long)`

### getMinPeriodMillis

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final long getMinPeriodMillis ()
```

Query the minimum interval allowed for periodic scheduled jobs. Attempting
to declare a smaller period than this when scheduling a job will result in a
job that is still periodic, but will run with this effective period.

<br />

| Returns ||
|---|---|
| `long` | The minimum available interval for scheduling periodic jobs, in milliseconds. <br /> |

### getMinimumNetworkChunkBytes

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getMinimumNetworkChunkBytes ()
```

Return the smallest piece of data that cannot be easily paused and resumed, in bytes.


Value is a non-negative number of bytes.

<br />

| Returns ||
|---|---|
| `long` | Smallest piece of data that cannot be easily paused and resumed, or `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_BYTES_UNKNOWN` when unknown. Value is a non-negative number of bytes. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setMinimumNetworkChunkBytes(long)`

### getNetworkType

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getNetworkType ()
```


**This method was deprecated
in API level 28.**   

This method attempts to map `https://developer.android.com/reference/android/app/job/JobInfo#getRequiredNetwork()`
into the set of simple constants, which results in a loss of
fidelity. Callers should move to using
`https://developer.android.com/reference/android/app/job/JobInfo#getRequiredNetwork()` directly.

Return the basic description of the kind of network this job requires.

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_NONE` - `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_ANY` - `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_UNMETERED` - `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_NOT_ROAMING` - `https://developer.android.com/reference/android/app/job/JobInfo#NETWORK_TYPE_CELLULAR` |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setRequiredNetworkType(int)`

### getPriority

Added in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getPriority ()
```

<br />

<br />

| Returns ||
|---|---|
| `int` | Value is one of the following: - `https://developer.android.com/reference/android/app/job/JobInfo#PRIORITY_MIN` - `https://developer.android.com/reference/android/app/job/JobInfo#PRIORITY_LOW` - `https://developer.android.com/reference/android/app/job/JobInfo#PRIORITY_DEFAULT` - `https://developer.android.com/reference/android/app/job/JobInfo#PRIORITY_HIGH` - `https://developer.android.com/reference/android/app/job/JobInfo#PRIORITY_MAX` |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setPriority(int)`

### getRequiredNetwork

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public NetworkRequest getRequiredNetwork ()
```

Return the detailed description of the kind of network this job requires,
or `null` if no specific kind of network is required.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/net/NetworkRequest` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setRequiredNetwork(android.net.NetworkRequest)`

### getService

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ComponentName getService ()
```

Name of the service endpoint that will be called back into by the JobScheduler.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/ComponentName` | This value cannot be `null`. <br /> |

### getTraceTag

Added in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getTraceTag ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | This value may be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setTraceTag(java.lang.String)`

### getTransientExtras

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Bundle getTransientExtras ()
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/Bundle` | This value cannot be `null`. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setTransientExtras(android.os.Bundle)`

### getTriggerContentMaxDelay

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getTriggerContentMaxDelay ()
```

When triggering on content URI changes, this is the maximum delay we will
use before scheduling the job.

<br />

| Returns ||
|---|---|
| `long` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setTriggerContentMaxDelay(long)`

### getTriggerContentUpdateDelay

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public long getTriggerContentUpdateDelay ()
```

When triggering on content URI changes, this is the delay from when a change
is detected until the job is scheduled.

<br />

| Returns ||
|---|---|
| `long` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setTriggerContentUpdateDelay(long)`

### getTriggerContentUris

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public TriggerContentUri[] getTriggerContentUris ()
```

Which content: URIs must change for the job to be scheduled. Returns null
if there are none required.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/app/job/JobInfo.TriggerContentUri` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#addTriggerContentUri(android.app.job.JobInfo.TriggerContentUri)`

### hashCode

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int hashCode ()
```

Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
`https://developer.android.com/reference/java/util/HashMap`.


The general contract of `hashCode` is:

- Whenever it is invoked on the same object more than once during an execution of a Java application, the `hashCode` method must consistently return the same integer, provided no information used in `equals` comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
- If two objects are equal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce the same integer result.
- It is *not* required that if two objects are unequal according to the `https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.

<br />

<br />

| Returns ||
|---|---|
| `int` | a hash code value for this object. <br /> |

### isExpedited

Added in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isExpedited ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setExpedited(boolean)`

### isImportantWhileForeground

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isImportantWhileForeground ()
```


**This method was deprecated
in API level 36.**   

Use `https://developer.android.com/reference/android/app/job/JobInfo#isExpedited()` instead.

<br />

**Note:** Beginning with
`https://developer.android.com/reference/android/os/Build.VERSION_CODES#BAKLAVA`, this flag will be ignored and no longer
function effectively, regardless of the calling app's target SDK version.
Calling this method will always return `false`.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setImportantWhileForeground(boolean)`

### isPeriodic

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isPeriodic ()
```

Track whether this job will repeat with a given period.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setPeriodic(long)`
- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setPeriodic(long,%20long)`

### isPersisted

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isPersisted ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setPersisted(boolean)`

### isPrefetch

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isPrefetch ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setPrefetch(boolean)`

### isRequireBatteryNotLow

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isRequireBatteryNotLow ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setRequiresBatteryNotLow(boolean)`

### isRequireCharging

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isRequireCharging ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setRequiresCharging(boolean)`

### isRequireDeviceIdle

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isRequireDeviceIdle ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setRequiresDeviceIdle(boolean)`

### isRequireStorageNotLow

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isRequireStorageNotLow ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setRequiresStorageNotLow(boolean)`

### isUserInitiated

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isUserInitiated ()
```

<br />

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/job/JobInfo.Builder#setUserInitiated(boolean)`

### toString

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |

### writeToParcel

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel out, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `out` | `Parcel`: The Parcel in which the object should be written. This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |