# ScreenCaptureProcessor

Summary:[Methods](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCaptureProcessor#pubmethods)\|[\[Expand All\]](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCaptureProcessor#)  

# ScreenCaptureProcessor

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public


interface
ScreenCaptureProcessor
`  
`


`

|---------------------------------------------------------------|
| android.support.test.runner.screenshot.ScreenCaptureProcessor |

|---|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCaptureProcessor#)Known Indirect Subclasses [BasicScreenCaptureProcessor](https://developer.android.com/reference/android/support/test/runner/screenshot/BasicScreenCaptureProcessor) |-------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [BasicScreenCaptureProcessor](https://developer.android.com/reference/android/support/test/runner/screenshot/BasicScreenCaptureProcessor) | A basic[ScreenCaptureProcessor](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCaptureProcessor)for processing a[ScreenCapture](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCapture). | ||

<br />

*** ** * ** ***

Interface for an object that is capable of processing[ScreenCapture](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCapture)s.

**This API is currently in beta.**

## Summary

|                                                                                                                                                                                                                                                         ### Public methods                                                                                                                                                                                                                                                         ||
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract `[String](https://developer.android.com/reference/java/lang/String.html) | ` `[process](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCaptureProcessor#process(android.support.test.runner.screenshot.ScreenCapture))`(`[ScreenCapture](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCapture)` capture) ` Process the given[ScreenCapture](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCapture). |

## Public methods

### process

```
String process (ScreenCapture capture)
```

Process the given[ScreenCapture](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCapture).

The given[ScreenCapture](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCapture)defines optional properties like filename and format that should be respected when defining the behavior of this method.

<br />

|                                                                                       Parameters                                                                                        ||
|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `capture` | `ScreenCapture`: the[ScreenCapture](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCapture)that specifies the bitmap to process <br /> |

|                                                       Returns                                                        ||
|-------------------------------------------------------------------------|---------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String.html) | the filename the bitmap was saved as <br /> |

|                                                              Throws                                                              ||
|---------------------------------------------------------------------------------|-------------------------------------------------|
| [IOException](https://developer.android.com/reference/java/io/IOException.html) | if there was an I/O error saving the screenshot |

-

  ## Interfaces

  - [ScreenCaptureProcessor](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCaptureProcessor)
-

  ## Classes

  - [BasicScreenCaptureProcessor](https://developer.android.com/reference/android/support/test/runner/screenshot/BasicScreenCaptureProcessor)
  - [ScreenCapture](https://developer.android.com/reference/android/support/test/runner/screenshot/ScreenCapture)
  - [Screenshot](https://developer.android.com/reference/android/support/test/runner/screenshot/Screenshot)
  - [UiAutomationWrapper](https://developer.android.com/reference/android/support/test/runner/screenshot/UiAutomationWrapper)