takeSnapshot

suspend fun takeSnapshot(): Image

Takes a snapshot of the preview's current contents, and returns it as an Image. Android only, like V5.

Throws

If the preview is not ready yet, has no contents to snapshot, or on iOS.