public class DecorViewScreenshotStrategy extends java.lang.Object implements ScreenshotStrategy
Screenshot strategy that captures the contents of a Window's decor view.
Advantages compared to UiAutomatorScreenshotStrategy:
| Constructor and Description |
|---|
DecorViewScreenshotStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
takeScreenshot(java.lang.String screenshotName,
ScreenshotCallback callback) |
public void takeScreenshot(java.lang.String screenshotName,
ScreenshotCallback callback)
takeScreenshot in interface ScreenshotStrategyscreenshotName - The screenshot name given to Screengrab.screenshot(String).
Should be passed through to the screenshotCallback.callback - The callback object to notify after the screenshot is captured