# android.support.test.runner.lifecycle

# android.support.test.runner.lifecycle

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

## Interfaces

|--------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|
| [ActivityLifecycleCallback](https://developer.android.com/reference/android/support/test/runner/lifecycle/ActivityLifecycleCallback)       | Callback for monitoring activity lifecycle events.                                           |
| [ActivityLifecycleMonitor](https://developer.android.com/reference/android/support/test/runner/lifecycle/ActivityLifecycleMonitor)         | Interface for tests to use when they need to query the activity lifecycle state.             |
| [ApplicationLifecycleCallback](https://developer.android.com/reference/android/support/test/runner/lifecycle/ApplicationLifecycleCallback) | Callback for monitoring application lifecycle events.                                        |
| [ApplicationLifecycleMonitor](https://developer.android.com/reference/android/support/test/runner/lifecycle/ApplicationLifecycleMonitor)   | Interface for tests to use when they need to be informed of the application lifecycle state. |

## Classes

|----------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
| [ActivityLifecycleMonitorRegistry](https://developer.android.com/reference/android/support/test/runner/lifecycle/ActivityLifecycleMonitorRegistry)       | An exposed registry instance to make it easy for callers to find the lifecycle monitor for their application.             |
| [ApplicationLifecycleMonitorRegistry](https://developer.android.com/reference/android/support/test/runner/lifecycle/ApplicationLifecycleMonitorRegistry) | An exposed registry instance to make it easy for callers to find the application lifecycle monitor for their application. |

## Enums

|--------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|
| [ApplicationStage](https://developer.android.com/reference/android/support/test/runner/lifecycle/ApplicationStage) | An enumeration of the lifecycle stages an application undergoes that can be monitored. |
| [Stage](https://developer.android.com/reference/android/support/test/runner/lifecycle/Stage)                       | An enumeration of the lifecycle stages an activity undergoes.                          |

-

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