BasicScreenCaptureProcessor


class BasicScreenCaptureProcessor : 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

This function is deprecated. Deprecated in Java

Public functions

String!

This function is deprecated. Deprecated in Java

Protected functions

String!

This function is deprecated. Deprecated in Java

String!
getFilename(prefix: String!)

This function is deprecated. Deprecated in Java

Protected properties

String!

This property is deprecated. Deprecated in Java

File!

This property is deprecated. Deprecated in Java

String!

This property is deprecated. Deprecated in Java

String!

This property is deprecated. Deprecated in Java

Public constructors

BasicScreenCaptureProcessor

BasicScreenCaptureProcessor()

Public functions

process

fun process(capture: ScreenCapture!): String!

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
capture: ScreenCapture!

the ScreenCapture that specifies the bitmap to process

Returns
String!

the filename the bitmap was saved as

Throws
java.io.IOException

if there was an I/O error saving the screenshot

Protected functions

getDefaultFilename

protected fun getDefaultFilename(): String!

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

getFilename

protected fun getFilename(prefix: String!): String!

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

Protected properties

mDefaultFilenamePrefix

protected val mDefaultFilenamePrefix: String!

mDefaultScreenshotPath

protected val mDefaultScreenshotPath: File!

mFileNameDelimiter

protected val mFileNameDelimiter: String!

mTag

protected val mTag: String!