public static interface Activity.ScreenCaptureCallback

android.app.Activity.ScreenCaptureCallback



Interface for observing screen captures of an Activity.

Summary

Public methods

abstract void onScreenCaptured()

Called when one of the monitored activities is captured.

Public methods

onScreenCaptured

public abstract void onScreenCaptured ()

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

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.