Language

AsyncTask<TParams,TProgress,TResult>.OnPostExecute Method

Definition

Overloads

Name Description
OnPostExecute(Object)

Runs on the UI thread after the background computation finishes.

OnPostExecute(TResult)

Runs on the UI thread after doInBackground(Params) . The specified result is the value returned by doInBackground(Params) . 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. . This method must be called from the main thread of your app.

OnPostExecute(Object)

Runs on the UI thread after the background computation finishes.

protected override void OnPostExecute(Java.Lang.Object? result);
override this.OnPostExecute : Java.Lang.Object -> unit

Parameters

result
Object

The background computation result.

Remarks

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

OnPostExecute(TResult)

Runs on the UI thread after doInBackground(Params) . The specified result is the value returned by doInBackground(Params) . 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. . This method must be called from the main thread of your app.

[Android.Runtime.Register("onPostExecute", "(Ljava/lang/Object;)V", "GetOnPostExecute_Ljava_lang_Object_Handler")]
protected virtual void OnPostExecute(TResult result);
[<Android.Runtime.Register("onPostExecute", "(Ljava/lang/Object;)V", "GetOnPostExecute_Ljava_lang_Object_Handler")>]
override this.OnPostExecute : 'Result -> unit

Parameters

result
TResult

The result of the operation computed by doInBackground(Params) .

Attributes

Remarks

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.

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

Applies to