lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 3

AsyncTask.Status

public static final enum AsyncTask.Status
extends Enum<AsyncTask.Status>

java.lang.Object
   ↳ java.lang.Enum<android.os.AsyncTask.Status>
     ↳ android.os.AsyncTask.Status


Indicates the current status of the task. Each status will be set only once during the lifetime of a task.

Summary

Enum values

AsyncTask.Status  FINISHED

Indicates that AsyncTask.onPostExecute(Result) has finished. 

AsyncTask.Status  PENDING

Indicates that the task has not been executed yet. 

AsyncTask.Status  RUNNING

Indicates that the task is running. 

Public methods

static AsyncTask.Status valueOf(String name)
static final Status[] values()

Inherited methods

Enum values

FINISHED

added in API level 3
public static final AsyncTask.Status FINISHED

Indicates that AsyncTask.onPostExecute(Result) has finished.

PENDING

added in API level 3
public static final AsyncTask.Status PENDING

Indicates that the task has not been executed yet.

RUNNING

added in API level 3
public static final AsyncTask.Status RUNNING

Indicates that the task is running.

Public methods

valueOf

added in API level 3
public static AsyncTask.Status valueOf (String name)

Parameters
name String

Returns
AsyncTask.Status

values

added in API level 3
public static final Status[] values ()

Returns
Status[]