# AsyncTask.Status

Added in[API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Status

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/os/AsyncTask.Status "View this page in Java")  

```
class Status
```

|---|---|------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[android.os.AsyncTask.Status](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#)\> ||
|   | ↳ | [android.os.AsyncTask.Status](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#) |

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [AsyncTask.Status.FINISHED](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#ENUM_VALUE:FINISHED),[AsyncTask.Status.PENDING](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#ENUM_VALUE:PENDING),[AsyncTask.Status.RUNNING](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#ENUM_VALUE:RUNNING) |-----------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [AsyncTask.Status.FINISHED](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#ENUM_VALUE:FINISHED) | Indicates that[AsyncTask.onPostExecute](https://developer.android.com/reference/kotlin/android/os/AsyncTask#onPostExecute(android.os.AsyncTask.Result))has finished. | | [AsyncTask.Status.PENDING](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#ENUM_VALUE:PENDING)   | Indicates that the task has not been executed yet.                                                                                                                   | | [AsyncTask.Status.RUNNING](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#ENUM_VALUE:RUNNING)   | Indicates that the task is running.                                                                                                                                  | |

*** ** * ** ***

| **This enum was deprecated in API level 30.**
|
| Deprecated in Java.

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

## Summary

|                                                                                                                                    Enum values                                                                                                                                     ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [FINISHED](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#ENUM_VALUE:FINISHED) Indicates that[AsyncTask.onPostExecute](https://developer.android.com/reference/kotlin/android/os/AsyncTask#onPostExecute(android.os.AsyncTask.Result))has finished. |
| [PENDING](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#ENUM_VALUE:PENDING) Indicates that the task has not been executed yet.                                                                                                                     |
| [RUNNING](https://developer.android.com/reference/kotlin/android/os/AsyncTask.Status#ENUM_VALUE:RUNNING) Indicates that the task is running.                                                                                                                                    |

## Enum values

### FINISHED

Added in[API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val FINISHED : AsyncTask.Status
```

**Deprecated:** *Deprecated in Java.*

Indicates that[AsyncTask.onPostExecute](https://developer.android.com/reference/kotlin/android/os/AsyncTask#onPostExecute(android.os.AsyncTask.Result))has finished.  

### PENDING

Added in[API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val PENDING : AsyncTask.Status
```

**Deprecated:** *Deprecated in Java.*

Indicates that the task has not been executed yet.  

### RUNNING

Added in[API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val RUNNING : AsyncTask.Status
```

**Deprecated:** *Deprecated in Java.*

Indicates that the task is running.