public class UiAutomatorScreenshotStrategy extends java.lang.Object implements ScreenshotStrategy
Screenshot strategy that delegates to UiAutomation for screenshot capture. Requires API level >= 18
Advantages compared to DecorViewScreenshotStrategy:
DecorViewScreenshotStrategy:
| Constructor and Description |
|---|
UiAutomatorScreenshotStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
takeScreenshot(java.lang.String screenshotName,
ScreenshotCallback screenshotCallback) |
public void takeScreenshot(java.lang.String screenshotName,
ScreenshotCallback screenshotCallback)
takeScreenshot in interface ScreenshotStrategyscreenshotName - The screenshot name given to Screengrab.screenshot(String).
Should be passed through to the screenshotCallback.screenshotCallback - The callback object to notify after the screenshot is captured