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 associated with the report, or null for a job-level report. On Android 14 through 17, the platform records the update for the job without distinguishing the item.

downloadBytes
Int64

The non-negative number of bytes downloaded. On Android 14 through 17, the platform treats NetworkBytesUnknown as unknown.

uploadBytes
Int64

The non-negative number of bytes uploaded. On Android 14 through 17, the platform treats NetworkBytesUnknown as unknown.

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