AsyncTask.OnPostExecute(Object) Method

Definition

Runs on the UI thread after #doInBackground.

[Android.Runtime.Register("onPostExecute", "(Ljava/lang/Object;)V", "GetOnPostExecute_Ljava_lang_Object_Handler")]
protected virtual void OnPostExecute (Java.Lang.Object? result);
[<Android.Runtime.Register("onPostExecute", "(Ljava/lang/Object;)V", "GetOnPostExecute_Ljava_lang_Object_Handler")>]
abstract member OnPostExecute : Java.Lang.Object -> unit
override this.OnPostExecute : Java.Lang.Object -> unit

Parameters

result
Object

The result of the operation computed by #doInBackground.

Attributes

Remarks

Runs on the UI thread after #doInBackground. The specified result is the value returned by #doInBackground. To better support testing frameworks, it is recommended that this be written to tolerate direct execution as part of the execute() call. The default version does nothing.

This method won't be invoked if the task was cancelled.

Java documentation for android.os.AsyncTask.onPostExecute(Result).

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