Language

JobWorkItem.Builder.SetMinimumNetworkChunkBytes(Int64) Method

Definition

Set the minimum size of non-resumable network traffic this work item requires, in bytes.

[Android.Runtime.Register("setMinimumNetworkChunkBytes", "(J)Landroid/app/job/JobWorkItem$Builder;", "", ApiSince=34)]
public Android.App.Job.JobWorkItem.Builder SetMinimumNetworkChunkBytes(long chunkSizeBytes);
[<Android.Runtime.Register("setMinimumNetworkChunkBytes", "(J)Landroid/app/job/JobWorkItem$Builder;", "", ApiSince=34)>]
member this.SetMinimumNetworkChunkBytes : int64 -> Android.App.Job.JobWorkItem.Builder

Parameters

chunkSizeBytes
Int64

The smallest piece of data that cannot be easily paused and resumed, in bytes. Value is a non-negative number of bytes.

Returns

This object for method chaining. This value cannot be null.

Attributes

Remarks

Set the minimum size of non-resumable network traffic this work item requires, in bytes. When the upload or download can be easily paused and resumed, use this to set the smallest size that must be transmitted between start and stop events to be considered successful. If the transfer cannot be paused and resumed, then this should be the sum of the values provided to setEstimatedNetworkBytes(long, long). See JobInfo.Builder.setMinimumNetworkChunkBytes(long) for details about how to set the minimum chunk.

Android reference for android.app.job.JobWorkItem.Builder.setMinimumNetworkChunkBytes.

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