captureScreenshotAfterNextFrame

fun captureScreenshotAfterNextFrame(width: Int, height: Int, callback: (Bitmap?) -> Unit)

Captures a screenshot after the next frame is rendered This ensures the screenshot contains the most up-to-date content