captureScreenshot

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

Captures a screenshot asynchronously

Parameters

width

Width of the screenshot (use surface width if available)

height

Height of the screenshot (use surface height if available)

callback

Callback to receive the bitmap result