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

BasicScreenCaptureProcessor

public class BasicScreenCaptureProcessor implements ScreenCaptureProcessor


A basic ScreenCaptureProcessor for processing a ScreenCapture.

This will perform basic processing on the given 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

Public methods

String

Process the given ScreenCapture.

Public constructors

BasicScreenCaptureProcessor

public BasicScreenCaptureProcessor()

Public methods

process

public 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