public class FileWritingScreenshotCallback extends java.lang.Object implements ScreenshotCallback
ScreenshotCallback implementation that stores the captured Bitmap on the file
system in the structure that the Screengrab command-line utility expects.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
EXTENSION |
protected static java.lang.String |
NAME_SEPARATOR |
| Constructor and Description |
|---|
FileWritingScreenshotCallback(android.content.Context appContext) |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.File |
getScreenshotFile(java.io.File screenshotDirectory,
java.lang.String screenshotName) |
void |
screenshotCaptured(java.lang.String screenshotName,
android.graphics.Bitmap screenshot) |
protected static final java.lang.String NAME_SEPARATOR
protected static final java.lang.String EXTENSION
public FileWritingScreenshotCallback(android.content.Context appContext)
public void screenshotCaptured(java.lang.String screenshotName,
android.graphics.Bitmap screenshot)
screenshotCaptured in interface ScreenshotCallbackscreenshotName - The name of the screenshot passed to Screengrab.screenshot(String)screenshot - Bitmap representing the captured screenshot. Must be disposed of by this
method after handling is complete.protected java.io.File getScreenshotFile(java.io.File screenshotDirectory,
java.lang.String screenshotName)