Język

JobServiceEngine.UpdateTransferredNetworkBytes Method

Definition

Call in to engine to report data transfer progress.

[Android.Runtime.Register("updateTransferredNetworkBytes", "(Landroid/app/job/JobParameters;Landroid/app/job/JobWorkItem;JJ)V", "GetUpdateTransferredNetworkBytes_Landroid_app_job_JobParameters_Landroid_app_job_JobWorkItem_JJHandler", ApiSince=34)]
public virtual void UpdateTransferredNetworkBytes(Android.App.Job.JobParameters params, Android.App.Job.JobWorkItem? item, long downloadBytes, long uploadBytes);
[<Android.Runtime.Register("updateTransferredNetworkBytes", "(Landroid/app/job/JobParameters;Landroid/app/job/JobWorkItem;JJ)V", "GetUpdateTransferredNetworkBytes_Landroid_app_job_JobParameters_Landroid_app_job_JobWorkItem_JJHandler", ApiSince=34)>]
abstract member UpdateTransferredNetworkBytes : Android.App.Job.JobParameters * Android.App.Job.JobWorkItem * int64 * int64 -> unit
override this.UpdateTransferredNetworkBytes : Android.App.Job.JobParameters * Android.App.Job.JobWorkItem * int64 * int64 -> unit

Parameters

params
JobParameters

The parameters identifying the running job whose transferred bytes are being reported.

item
JobWorkItem

The work item whose transferred bytes are being reported, or null to report them for the job itself.

downloadBytes
Int64

Value is a non-negative number of bytes.

uploadBytes
Int64

Value is a non-negative number of bytes.

Attributes

Remarks

Call in to engine to report data transfer progress.

Java documentation for android.app.job.JobServiceEngine.updateTransferredNetworkBytes(android.app.job.JobParameters, android.app.job.JobWorkItem, 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