# androidx.test.runner.lifecycle

# androidx.test.runner.lifecycle

*** ** * ** ***

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

## Interfaces

|--------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|
| [ActivityLifecycleCallback](https://developer.android.com/reference/kotlin/androidx/test/runner/lifecycle/ActivityLifecycleCallback)       | Callback for monitoring activity lifecycle events.                                           |
| [ActivityLifecycleMonitor](https://developer.android.com/reference/kotlin/androidx/test/runner/lifecycle/ActivityLifecycleMonitor)         | Interface for tests to use when they need to query the activity lifecycle state.             |
| [ApplicationLifecycleCallback](https://developer.android.com/reference/kotlin/androidx/test/runner/lifecycle/ApplicationLifecycleCallback) | Callback for monitoring application lifecycle events.                                        |
| [ApplicationLifecycleMonitor](https://developer.android.com/reference/kotlin/androidx/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/kotlin/androidx/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/kotlin/androidx/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/kotlin/androidx/test/runner/lifecycle/ApplicationStage) | An enumeration of the lifecycle stages an application undergoes that can be monitored. |
| [Stage](https://developer.android.com/reference/kotlin/androidx/test/runner/lifecycle/Stage)                       | An enumeration of the lifecycle stages an activity undergoes.                          |