save Image

fun saveImage(toFile: File, saveAction: (Boolean, String) -> Unit)

method to store the preview as image

Parameters

toFile

File instance to store

saveAction

listener for storing image

Sources

Link copied to clipboard