Stay organized with collections Save and categorize content based on your preferences.

ScreenCaptureProcessor

public interface ScreenCaptureProcessor

Known direct subclasses
BasicScreenCaptureProcessor

This class is deprecated.

use androidx.test.espresso.screenshot.captureToBitmap or androidx.test.core.app.DeviceCapture instead


Interface for an object that is capable of processing ScreenCaptures.

Summary

Public methods

abstract String

Process the given ScreenCapture.

Public methods

process

abstract String process(ScreenCapture capture)

Process the given ScreenCapture.

The given ScreenCapture defines optional properties like filename and format that should be respected when defining the behavior of this method.

Parameters
ScreenCapture capture

the ScreenCapture that specifies the bitmap to process

Returns
String

the filename the bitmap was saved as

Throws
java.io.IOException java.io.IOException

if there was an I/O error saving the screenshot