Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# Activity.ScreenCaptureCallback

*** ** * ** ***

` public static interface Activity.ScreenCaptureCallback `   
` `

|---|
| android.app.Activity.ScreenCaptureCallback |

<br />

*** ** * ** ***

Interface for observing screen captures of an `https://developer.android.com/reference/android/app/Activity`.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/app/Activity.ScreenCaptureCallback#onScreenCaptured()() ` Called when one of the monitored activities is captured. |

## Public methods

### onScreenCaptured

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onScreenCaptured ()
```

Called when one of the monitored activities is captured. This is not invoked if the activity window has `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#FLAG_SECURE` set.

<br />