Added in API level 34

ScreenCaptureCallback


interface ScreenCaptureCallback
android.app.Activity.ScreenCaptureCallback

Interface for observing screen captures of an Activity.

Summary

Public methods
abstract Unit

Called when one of the monitored activities is captured.

Public methods

onScreenCaptured

Added in API level 34
abstract fun onScreenCaptured(): Unit

Called when one of the monitored activities is captured. This is not invoked if the activity window has WindowManager.LayoutParams#FLAG_SECURE set.