# ApplicationLifecycleCallback

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/ApplicationLifecycleCallback.java+class:androidx.test.runner.lifecycle.ApplicationLifecycleCallback)

*** ** * ** ***


```
public interface ApplicationLifecycleCallback
```

<br />

*** ** * ** ***

Callback for monitoring application lifecycle events.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/test/runner/lifecycle/ApplicationLifecycleCallback#onApplicationLifecycleChanged(android.app.Application,androidx.test.runner.lifecycle.ApplicationStage)(https://developer.android.com/reference/android/app/Application.html app, https://developer.android.com/reference/androidx/test/runner/lifecycle/ApplicationStage stage)` Called on after an application has processed its lifecycle change event (for example onCreate) These callbacks may occur on main thread so implementers should limit the amount of processing performed |

## Public methods

### onApplicationLifecycleChanged

```
abstract void onApplicationLifecycleChanged(Application app, ApplicationStage stage)
```

Called on after an application has processed its lifecycle change event (for example onCreate) These callbacks may occur on main thread so implementers should limit the amount of processing performed

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/app/Application.html app` | the `https://developer.android.com/reference/android/app/Application.html` |
| `https://developer.android.com/reference/androidx/test/runner/lifecycle/ApplicationStage stage` | its current stage. |