Stay organized with collections
Save and categorize content based on your preferences.
Activity.ScreenCaptureCallback
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Activity.ScreenCaptureCallback\n\nAdded in [API level 34](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nActivity.ScreenCaptureCallback\n==============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/app/Activity.ScreenCaptureCallback \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nActivity.ScreenCaptureCallback\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------|\n| android.app.Activity.ScreenCaptureCallback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for observing screen captures of an [Activity](/reference/android/app/Activity).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onScreenCaptured](/reference/android/app/Activity.ScreenCaptureCallback#onScreenCaptured())`() ` Called when one of the monitored activities is captured. |\n\nPublic methods\n--------------\n\n### onScreenCaptured\n\nAdded in [API level 34](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onScreenCaptured ()\n```\n\nCalled when one of the monitored activities is captured.\nThis is not invoked if the activity window\nhas [WindowManager.LayoutParams.FLAG_SECURE](/reference/android/view/WindowManager.LayoutParams#FLAG_SECURE) set.\n\n\u003cbr /\u003e"]]