takeSnapshot

fun takeSnapshot(): Image?

Takes a snapshot of the currently rendered content, or returns null if none is available. It must be called on the main thread. The caller owns the returned image, and closes it when done with it.

val snapshot = camera.takeSnapshot()
println("Captured Skia snapshot! ${snapshot?.imageInfo}")