Language

AsyncTask<TParams,TProgress,TResult>.RunInBackground(TParams[]) Method

Definition

Override this method to perform the task's computation. It normally runs on a background thread. The parameters are those passed to the task for execution.

[Android.Runtime.Register("doInBackground", "([Ljava/lang/Object;)Ljava/lang/Object;", "GetDoInBackground_arrayLjava_lang_Object_Handler")]
protected abstract TResult RunInBackground(params TParams[] params);
[<Android.Runtime.Register("doInBackground", "([Ljava/lang/Object;)Ljava/lang/Object;", "GetDoInBackground_arrayLjava_lang_Object_Handler")>]
abstract member RunInBackground : 'Params[] -> 'Result

Parameters

params
TParams[]

The parameters of the task.

Returns

TResult

A result, defined by the subclass of this task.

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.doInBackground(Params[]).

Applies to