다음을 통해 공유


AsyncTask.PublishProgress(Object[]) Method

Definition

This method can be invoked from #doInBackground to publish updates on the UI thread while the background computation is still running.

[Android.Runtime.Register("publishProgress", "([Ljava/lang/Object;)V", "")]
protected void PublishProgress (params Java.Lang.Object[]? values);
[<Android.Runtime.Register("publishProgress", "([Ljava/lang/Object;)V", "")>]
member this.PublishProgress : Java.Lang.Object[] -> unit

Parameters

values
Object[]

The progress values to update the UI with.

Attributes

Remarks

This method can be invoked from #doInBackground to publish updates on the UI thread while the background computation is still running. Each call to this method will trigger the execution of #onProgressUpdate on the UI thread.

#onProgressUpdate will not be called if the task has been canceled.

Java documentation for android.os.AsyncTask.publishProgress(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.

Applies to