captureScreenshotAsync

fun captureScreenshotAsync(callback: DevConsoleCallback<ScreenshotResult>)

Java-friendly counterpart to captureScreenshot; the callback is invoked on a background thread with a sealed result.