# ApplicationStage

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/test/runner/lifecycle/ApplicationStage "View this page in Java")

<br />

```
enum ApplicationStage
```

<br />

*** ** * ** ***

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

See the[android.app.Application](https://developer.android.com/reference/android/app/Application.html)javadoc for detailed documentation.

## Summary

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

|                                                                                                  ### Public functions                                                                                                   |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[ApplicationStage](https://developer.android.com/reference/kotlin/androidx/test/runner/lifecycle/ApplicationStage)`!`                                                                                     | [valueOf](https://developer.android.com/reference/kotlin/androidx/test/runner/lifecycle/ApplicationStage#valueOf(java.lang.String))`(name: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`!)` Returns the enum constant of this type with the specified name. |
| `java-static `[Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)`<`[ApplicationStage](https://developer.android.com/reference/kotlin/androidx/test/runner/lifecycle/ApplicationStage)`!>!` | [values](https://developer.android.com/reference/kotlin/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

```
val ApplicationStage.CREATED: ApplicationStage
```

Indicates that onCreate has finished.  

### PRE_ON_CREATE

```
val ApplicationStage.PRE_ON_CREATE: ApplicationStage
```

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

## Public functions

### valueOf

```
java-static fun valueOf(name: String!): ApplicationStage!
```

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                                                        |
|-----------------------------------------------------------------------------------------------------------------------|-------------------------------------------|
| [ApplicationStage](https://developer.android.com/reference/kotlin/androidx/test/runner/lifecycle/ApplicationStage)`!` | the enum constant with the specified name |

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

### values

```
java-static fun values(): Array<ApplicationStage!>!
```

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                                                                                                  |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|
| [Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)`<`[ApplicationStage](https://developer.android.com/reference/kotlin/androidx/test/runner/lifecycle/ApplicationStage)`!>!` | an array containing the constants of this enum type, in the order they're declared |