# ScreenCaptureProcessor

Artifact: [androidx.test:runner](https://developer.android.com/jetpack/androidx/releases/test) [View Source](https://cs.android.com/search?q=file:androidx/test/runner/screenshot/ScreenCaptureProcessor.java+class:androidx.test.runner.screenshot.ScreenCaptureProcessor)

*** ** * ** ***


```
public interface ScreenCaptureProcessor
```

<br />

Known direct subclasses [BasicScreenCaptureProcessor](https://developer.android.com/reference/androidx/test/runner/screenshot/BasicScreenCaptureProcessor)

|---|---|
| `https://developer.android.com/reference/androidx/test/runner/screenshot/BasicScreenCaptureProcessor` | **This class is deprecated.** use androidx.test.espresso.screenshot.captureToBitmap or androidx.test.core.app.DeviceCapture instead <br /> |

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
>
> use androidx.test.espresso.screenshot.captureToBitmap or androidx.test.core.app.DeviceCapture instead

Interface for an object that is capable of processing `https://developer.android.com/reference/androidx/test/runner/screenshot/ScreenCapture`s.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/java/lang/String.html` | `[process](https://developer.android.com/reference/androidx/test/runner/screenshot/ScreenCaptureProcessor#process(androidx.test.runner.screenshot.ScreenCapture))(https://developer.android.com/reference/androidx/test/runner/screenshot/ScreenCapture capture)` **This method is deprecated.** Deprecated in Java |

## Public methods

### process

```
abstract String [process](https://developer.android.com/reference/androidx/test/runner/screenshot/ScreenCaptureProcessor#process(androidx.test.runner.screenshot.ScreenCapture))(ScreenCapture capture)
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

Process the given `https://developer.android.com/reference/androidx/test/runner/screenshot/ScreenCapture`.

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

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/test/runner/screenshot/ScreenCapture capture` | the `https://developer.android.com/reference/androidx/test/runner/screenshot/ScreenCapture` that specifies the bitmap to process |

| Returns |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html` | the filename the bitmap was saved as |

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