cameraViewEx / com.priyankvasa.android.cameraviewex / CameraView / addPictureTakenListener

addPictureTakenListener

fun addPictureTakenListener(listener: (image: Image) -> Unit): CameraView

Add a new picture taken listener.

Parameters

listener - lambda with imageData of type ByteArray as argument which is image data of the captured image, of format set with CameraView.outputFormat

Return
instance of CameraView it is called on