Language

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

Definition

Override this method to perform a computation on a background thread. The specified parameters are the parameters passed to execute(Params) by the caller of this task.

[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