# ApplicationStage

Artifact: [androidx.test:monitor](https://developer.android.com/jetpack/androidx/releases/test) [View Source](https://cs.android.com/search?q=file:androidx/test/runner/lifecycle/ApplicationStage.java+class:androidx.test.runner.lifecycle.ApplicationStage)

*** ** * ** ***


```
public enum ApplicationStage
```

<br />

*** ** * ** ***

An enumeration of the lifecycle stages an application undergoes that can be monitored.

See the `https://developer.android.com/reference/android/app/Application.html` javadoc for detailed documentation.

## Summary

| ### Enum Values |
|---|---|
| `https://developer.android.com/reference/androidx/test/runner/lifecycle/ApplicationStage#CREATED` | Indicates that onCreate has finished. |
| `https://developer.android.com/reference/androidx/test/runner/lifecycle/ApplicationStage#PRE_ON_CREATE` | Indicates that onCreate is being called before any onCreate code executes. |

| ### Public methods |
|---|---|
| `static https://developer.android.com/reference/androidx/test/runner/lifecycle/ApplicationStage` | `https://developer.android.com/reference/androidx/test/runner/lifecycle/ApplicationStage#valueOf(java.lang.String)(https://developer.android.com/reference/java/lang/String.html name)` Returns the enum constant of this type with the specified name. |
| `static ApplicationStage[]` | `https://developer.android.com/reference/androidx/test/runner/lifecycle/ApplicationStage#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### CREATED

```
ApplicationStage ApplicationStage.CREATED
```

Indicates that onCreate has finished.

### PRE_ON_CREATE

```
ApplicationStage ApplicationStage.PRE_ON_CREATE
```

Indicates that onCreate is being called before any onCreate code executes.

## Public methods

### valueOf

```
public static ApplicationStage valueOf(String name)
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/test/runner/lifecycle/ApplicationStage` | the enum constant with the specified name |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if this enum type has no constant with the specified name |

### values

```
public static ApplicationStage[] values()
```

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

| Returns |
|---|---|
| `ApplicationStage[]` | an array containing the constants of this enum type, in the order they're declared |