# Stage

Summary:[Enums](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage#enumconstants)\|[Methods](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage#)  

# Stage

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public

final

enum
Stage
`  
`


``

extends `[Enum](https://developer.android.com/reference/java/lang/Enum.html)`<`[Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage)`>


``


`

|---|---|---------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [java.lang.Enum](https://developer.android.com/reference/java/lang/Enum.html)\<[android.support.test.runner.lifecycle.Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage)\> ||
|   | ↳ | android.support.test.runner.lifecycle.Stage |

<br />

*** ** * ** ***

An enumeration of the lifecycle stages an activity undergoes.

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

## Summary

|                                                                                       ### Enum values                                                                                       ||
|----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|
| [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | `CREATED` Indicates that onCreate has been called.                                            |
| [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | `DESTROYED` Indicates that onDestroy has been called - system is shutting down the activity.  |
| [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | `PAUSED` Indicates that onPause has been called - activity is no longer in the foreground.    |
| [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | `PRE_ON_CREATE` Indicates that onCreate is being called before any onCreate code executes.    |
| [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | `RESTARTED` Indicates that onResume has been called - we have navigated back to the activity. |
| [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | `RESUMED` Indicates that onResume has been called - activity is now visible to user.          |
| [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | `STARTED` Indicates that onStart has been called.                                             |
| [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | `STOPPED` Indicates that onStop has been called - activity is no longer visible to the user.  |

|                                                                                                                                                       ### Public methods                                                                                                                                                       ||
|----------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` static `[Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage)         | ` `[valueOf](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage#valueOf(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` name) ` |
| ` static final `[Stage[]](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | ` `[values](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage#values())`() `                                                                                                 |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage#)From class` `[java.lang.Enum](https://developer.android.com/reference/java/lang/Enum.html)` ` |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` final `[Object](https://developer.android.com/reference/java/lang/Object.html)                                                                                                 | ` clone() `                                                                                                                                                                  | | ` final int`                                                                                                                                                                     | ` compareTo(`[Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage)` arg0) `                                                           | | ` int`                                                                                                                                                                           | ` compareTo(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) `                                                                                | | ` final boolean`                                                                                                                                                                 | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) `                                                                                   | | ` final void`                                                                                                                                                                    | ` finalize() `                                                                                                                                                               | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<`[Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage)`>` | ` getDeclaringClass() `                                                                                                                                                      | | ` final int`                                                                                                                                                                     | ` hashCode() `                                                                                                                                                               | | ` final `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                 | ` name() `                                                                                                                                                                   | | ` final int`                                                                                                                                                                     | ` ordinal() `                                                                                                                                                                | | ` `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                       | ` toString() `                                                                                                                                                               | | ` static <T extends `[Enum](https://developer.android.com/reference/java/lang/Enum.html)`<T>> T`                                                                                 | ` valueOf(`[Class](https://developer.android.com/reference/java/lang/Class.html)`<T> arg0, `[String](https://developer.android.com/reference/java/lang/String.html)` arg1) ` | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage#)From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                                | | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                             | ` finalize() `                                                                             | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage#)From interface` `[java.lang.Comparable](https://developer.android.com/reference/java/lang/Comparable.html)` ` |-----------------|--------------------------------------------------------------------------------------------------------------------| | ` abstract int` | ` compareTo(`[Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage)` arg0) ` | ||

## Enum values

### CREATED

```
Stage CREATED
```

Indicates that onCreate has been called.

<br />

### DESTROYED

```
Stage DESTROYED
```

Indicates that onDestroy has been called - system is shutting down the activity.

<br />

### PAUSED

```
Stage PAUSED
```

Indicates that onPause has been called - activity is no longer in the foreground.

<br />

### PRE_ON_CREATE

```
Stage PRE_ON_CREATE
```

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

<br />

### RESTARTED

```
Stage RESTARTED
```

Indicates that onResume has been called - we have navigated back to the activity.

<br />

### RESUMED

```
Stage RESUMED
```

Indicates that onResume has been called - activity is now visible to user.

<br />

### STARTED

```
Stage STARTED
```

Indicates that onStart has been called.

<br />

### STOPPED

```
Stage STOPPED
```

Indicates that onStop has been called - activity is no longer visible to the user.

<br />

## Public methods

### valueOf

```
Stage valueOf (String name)
```

<br />

<br />

|       Parameters        ||
|--------|-----------------|
| `name` | `String` <br /> |

|                                               Returns                                                ||
|----------------------------------------------------------------------------------------------|--------|
| [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | <br /> |

### values

```
Stage[] values ()
```

<br />

<br />

|                                                Returns                                                 ||
|------------------------------------------------------------------------------------------------|--------|
| [Stage[]](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage) | <br /> |

-

  ## Interfaces

  - [ActivityLifecycleCallback](https://developer.android.com/reference/android/support/test/runner/lifecycle/ActivityLifecycleCallback)
  - [ActivityLifecycleMonitor](https://developer.android.com/reference/android/support/test/runner/lifecycle/ActivityLifecycleMonitor)
  - [ApplicationLifecycleCallback](https://developer.android.com/reference/android/support/test/runner/lifecycle/ApplicationLifecycleCallback)
  - [ApplicationLifecycleMonitor](https://developer.android.com/reference/android/support/test/runner/lifecycle/ApplicationLifecycleMonitor)
-

  ## Classes

  - [ActivityLifecycleMonitorRegistry](https://developer.android.com/reference/android/support/test/runner/lifecycle/ActivityLifecycleMonitorRegistry)
  - [ApplicationLifecycleMonitorRegistry](https://developer.android.com/reference/android/support/test/runner/lifecycle/ApplicationLifecycleMonitorRegistry)
-

  ## Enums

  - [ApplicationStage](https://developer.android.com/reference/android/support/test/runner/lifecycle/ApplicationStage)
  - [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage)