JobWorkItem Constructors

Definition

Overloads

JobWorkItem(Intent)

Create a new piece of work, which can be submitted to JobScheduler#enqueue JobScheduler.enqueue.

JobWorkItem(Intent, Int64, Int64)

Create a new piece of work, which can be submitted to JobScheduler#enqueue JobScheduler.enqueue.

JobWorkItem(Intent, Int64, Int64, Int64)

Create a new piece of work, which can be submitted to JobScheduler#enqueue JobScheduler.enqueue.

JobWorkItem(Intent)

Create a new piece of work, which can be submitted to JobScheduler#enqueue JobScheduler.enqueue.

[Android.Runtime.Register(".ctor", "(Landroid/content/Intent;)V", "", ApiSince=26)]
public JobWorkItem (Android.Content.Intent? intent);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Intent;)V", "", ApiSince=26)>]
new Android.App.Job.JobWorkItem : Android.Content.Intent -> Android.App.Job.JobWorkItem

Parameters

intent
Intent

The general Intent describing this work.

Attributes

Remarks

Create a new piece of work, which can be submitted to JobScheduler#enqueue JobScheduler.enqueue.

Intents cannot be used for persisted JobWorkItems. Use Builder#setExtras(PersistableBundle) instead for persisted JobWorkItems.

Java documentation for android.app.job.JobWorkItem.JobWorkItem(android.content.Intent).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

JobWorkItem(Intent, Int64, Int64)

Create a new piece of work, which can be submitted to JobScheduler#enqueue JobScheduler.enqueue.

[Android.Runtime.Register(".ctor", "(Landroid/content/Intent;JJ)V", "", ApiSince=28)]
public JobWorkItem (Android.Content.Intent? intent, long downloadBytes, long uploadBytes);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Intent;JJ)V", "", ApiSince=28)>]
new Android.App.Job.JobWorkItem : Android.Content.Intent * int64 * int64 -> Android.App.Job.JobWorkItem

Parameters

intent
Intent

The general Intent describing this work.

downloadBytes
Int64

The estimated size of network traffic that will be downloaded by this job work item, in bytes.

uploadBytes
Int64

The estimated size of network traffic that will be uploaded by this job work item, in bytes.

Attributes

Remarks

Create a new piece of work, which can be submitted to JobScheduler#enqueue JobScheduler.enqueue.

See JobInfo.Builder#setEstimatedNetworkBytes(long, long) for details about how to estimate network traffic.

Intents cannot be used for persisted JobWorkItems. Use Builder#setExtras(PersistableBundle) instead for persisted JobWorkItems.

Java documentation for android.app.job.JobWorkItem.JobWorkItem(android.content.Intent, long, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

JobWorkItem(Intent, Int64, Int64, Int64)

Create a new piece of work, which can be submitted to JobScheduler#enqueue JobScheduler.enqueue.

[Android.Runtime.Register(".ctor", "(Landroid/content/Intent;JJJ)V", "", ApiSince=33)]
public JobWorkItem (Android.Content.Intent? intent, long downloadBytes, long uploadBytes, long minimumChunkBytes);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Intent;JJJ)V", "", ApiSince=33)>]
new Android.App.Job.JobWorkItem : Android.Content.Intent * int64 * int64 * int64 -> Android.App.Job.JobWorkItem

Parameters

intent
Intent

The general Intent describing this work.

downloadBytes
Int64

The estimated size of network traffic that will be downloaded by this job work item, in bytes.

uploadBytes
Int64

The estimated size of network traffic that will be uploaded by this job work item, in bytes.

minimumChunkBytes
Int64

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

Attributes

Remarks

Create a new piece of work, which can be submitted to JobScheduler#enqueue JobScheduler.enqueue.

See JobInfo.Builder#setEstimatedNetworkBytes(long, long) for details about how to estimate network traffic.

Intents cannot be used for persisted JobWorkItems. Use Builder#setExtras(PersistableBundle) instead for persisted JobWorkItems.

Java documentation for android.app.job.JobWorkItem.JobWorkItem(android.content.Intent, long, long, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to