JobServiceEngine.UpdateEstimatedNetworkBytes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Call in to engine to report data transfer progress.
[Android.Runtime.Register("updateEstimatedNetworkBytes", "(Landroid/app/job/JobParameters;Landroid/app/job/JobWorkItem;JJ)V", "GetUpdateEstimatedNetworkBytes_Landroid_app_job_JobParameters_Landroid_app_job_JobWorkItem_JJHandler", ApiSince=34)]
public virtual void UpdateEstimatedNetworkBytes(Android.App.Job.JobParameters params, Android.App.Job.JobWorkItem? item, long downloadBytes, long uploadBytes);
[<Android.Runtime.Register("updateEstimatedNetworkBytes", "(Landroid/app/job/JobParameters;Landroid/app/job/JobWorkItem;JJ)V", "GetUpdateEstimatedNetworkBytes_Landroid_app_job_JobParameters_Landroid_app_job_JobWorkItem_JJHandler", ApiSince=34)>]
abstract member UpdateEstimatedNetworkBytes : Android.App.Job.JobParameters * Android.App.Job.JobWorkItem * int64 * int64 -> unit
override this.UpdateEstimatedNetworkBytes : Android.App.Job.JobParameters * Android.App.Job.JobWorkItem * int64 * int64 -> unit
Parameters
- params
- JobParameters
The parameters identifying the running job whose transfer estimate is being updated.
- 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 estimated download size in bytes. On Android 14 through 17, the platform treats NetworkBytesUnknown as unknown.
- uploadBytes
- Int64
The non-negative estimated upload size in bytes. On Android 14 through 17, the platform treats NetworkBytesUnknown as unknown.
- Attributes
Remarks
Call in to engine to report data transfer progress.
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.