Freigeben über


AsyncTask.OnPreExecute Method

Definition

Runs on the UI thread before #doInBackground.

[Android.Runtime.Register("onPreExecute", "()V", "GetOnPreExecuteHandler")]
protected virtual void OnPreExecute ();
[<Android.Runtime.Register("onPreExecute", "()V", "GetOnPreExecuteHandler")>]
abstract member OnPreExecute : unit -> unit
override this.OnPreExecute : unit -> unit
Attributes

Remarks

Runs on the UI thread before #doInBackground. Invoked directly by #execute or #executeOnExecutor. The default version does nothing.

Java documentation for android.os.AsyncTask.onPreExecute().

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