# BasicScreenCaptureProcessor

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/BasicScreenCaptureProcessor.java+class:androidx.test.runner.screenshot.BasicScreenCaptureProcessor)

*** ** * ** ***


```
class BasicScreenCaptureProcessor : ScreenCaptureProcessor
```

<br />

*** ** * ** ***

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

A basic `https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/ScreenCaptureProcessor` for processing a `https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/ScreenCapture`.

This will perform basic processing on the given `https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/ScreenCapture` such as saving to the public Pictures directory, given by android.os.Environment.getExternalStoragePublicDirectory(DIRECTORY_PICTURES), with a simple name that includes a few characteristics about the device it was saved on followed by a UUID.

## Summary

| ### Public constructors |
|---|
| `[BasicScreenCaptureProcessor](https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#BasicScreenCaptureProcessor())()` **This function is deprecated.** Deprecated in Java |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `[process](https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#process(androidx.test.runner.screenshot.ScreenCapture))(capture: https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/ScreenCapture!)` **This function is deprecated.** Deprecated in Java |

| ### Protected functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `[getDefaultFilename](https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#getDefaultFilename())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `[getFilename](https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#getFilename(java.lang.String))(prefix: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` **This function is deprecated.** Deprecated in Java |

| ### Protected properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#mDefaultFilenamePrefix()` **This property is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/java/io/File.html!` | `https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#mDefaultScreenshotPath()` **This property is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#mFileNameDelimiter()` **This property is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#mTag()` **This property is deprecated.** Deprecated in Java |

## Public constructors

### BasicScreenCaptureProcessor

```
[BasicScreenCaptureProcessor](https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#BasicScreenCaptureProcessor())()
```

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

## Public functions

### process

```
fun [process](https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#process(androidx.test.runner.screenshot.ScreenCapture))(capture: ScreenCapture!): String!
```

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

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

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

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

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.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 |

## Protected functions

### getDefaultFilename

```
protected fun [getDefaultFilename](https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#getDefaultFilename())(): String!
```

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

Returns the default filename for this class suffixed with a UUID.

### getFilename

```
protected fun [getFilename](https://developer.android.com/reference/kotlin/androidx/test/runner/screenshot/BasicScreenCaptureProcessor#getFilename(java.lang.String))(prefix: String!): String!
```

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

Returns the filename created from the given prifix and suffixed with a UUID.

## Protected properties

### mDefaultFilenamePrefix

```
protected val mDefaultFilenamePrefix: String!
```

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

### mDefaultScreenshotPath

```
protected val mDefaultScreenshotPath: File!
```

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

### mFileNameDelimiter

```
protected val mFileNameDelimiter: String!
```

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

### mTag

```
protected val mTag: String!
```

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