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,["# ScreenCaptureProcessor\n\nSummary: [Methods](#pubmethods) \\| [\\[Expand All\\]](#) \n\nScreenCaptureProcessor\n======================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\n\n`\npublic\n\n\ninterface\nScreenCaptureProcessor\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------------------|\n| android.support.test.runner.screenshot.ScreenCaptureProcessor |\n\n|---|---|\n| Known Indirect Subclasses [BasicScreenCaptureProcessor](/reference/android/support/test/runner/screenshot/BasicScreenCaptureProcessor) |--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [BasicScreenCaptureProcessor](/reference/android/support/test/runner/screenshot/BasicScreenCaptureProcessor) | A basic [ScreenCaptureProcessor](/reference/android/support/test/runner/screenshot/ScreenCaptureProcessor) for processing a [ScreenCapture](/reference/android/support/test/runner/screenshot/ScreenCapture). | ||\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface for an object that is capable of processing [ScreenCapture](/reference/android/support/test/runner/screenshot/ScreenCapture)s.\n\n**This API is currently in beta.**\n\nSummary\n-------\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[String](https://developer.android.com/reference/java/lang/String.html) | ` `[process](/reference/android/support/test/runner/screenshot/ScreenCaptureProcessor#process(android.support.test.runner.screenshot.ScreenCapture))`(`[ScreenCapture](/reference/android/support/test/runner/screenshot/ScreenCapture)` capture) ` Process the given [ScreenCapture](/reference/android/support/test/runner/screenshot/ScreenCapture). |\n\nPublic methods\n--------------\n\n### process\n\n```\nString process (ScreenCapture capture)\n```\n\nProcess the given [ScreenCapture](/reference/android/support/test/runner/screenshot/ScreenCapture).\n\nThe given [ScreenCapture](/reference/android/support/test/runner/screenshot/ScreenCapture) defines optional properties like filename and format that\nshould be respected when defining the behavior of this method.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| `capture` | `ScreenCapture`: the [ScreenCapture](/reference/android/support/test/runner/screenshot/ScreenCapture) that specifies the bitmap to process \u003cbr /\u003e |\n\n| Returns ||\n|-------------------------------------------------------------------------|---------------------------------------------|\n| [String](https://developer.android.com/reference/java/lang/String.html) | the filename the bitmap was saved as \u003cbr /\u003e |\n\n| Throws ||\n|---------------------------------------------------------------------------------|-------------------------------------------------|\n| [IOException](https://developer.android.com/reference/java/io/IOException.html) | if there was an I/O error saving the screenshot |\n\n-\n\n Interfaces\n ----------\n\n - [ScreenCaptureProcessor](/reference/android/support/test/runner/screenshot/ScreenCaptureProcessor)\n-\n\n Classes\n -------\n\n - [BasicScreenCaptureProcessor](/reference/android/support/test/runner/screenshot/BasicScreenCaptureProcessor)\n - [ScreenCapture](/reference/android/support/test/runner/screenshot/ScreenCapture)\n - [Screenshot](/reference/android/support/test/runner/screenshot/Screenshot)\n - [UiAutomationWrapper](/reference/android/support/test/runner/screenshot/UiAutomationWrapper)"]]