draw

fun draw(canvas: Canvas)

Draws the latest rendered bitmap into the configured draw region of the canvas, if available.

If no frame is available yet, only the draw-region clear color is painted.

⚠️ The supplied canvas must be hardware accelerated.

Throws

If this session has been closed.

If the destination canvas is not hardware-accelerated.