Language

JobWorkItem.Builder.SetEstimatedNetworkBytes(Int64, Int64) Method

Definition

Set the estimated size of network traffic that will be performed for this work item, in bytes.

[Android.Runtime.Register("setEstimatedNetworkBytes", "(JJ)Landroid/app/job/JobWorkItem$Builder;", "", ApiSince=34)]
public Android.App.Job.JobWorkItem.Builder SetEstimatedNetworkBytes(long downloadBytes, long uploadBytes);
[<Android.Runtime.Register("setEstimatedNetworkBytes", "(JJ)Landroid/app/job/JobWorkItem$Builder;", "", ApiSince=34)>]
member this.SetEstimatedNetworkBytes : int64 * int64 -> Android.App.Job.JobWorkItem.Builder

Parameters

downloadBytes
Int64

The estimated size of network traffic that will be downloaded for this work item, in bytes. Value is a non-negative number of bytes.

uploadBytes
Int64

The estimated size of network traffic that will be uploaded for this work item, 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 estimated size of network traffic that will be performed for this work item, in bytes. See JobInfo.Builder.setEstimatedNetworkBytes(long,long) for details about how to estimate network traffic.

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

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