fun setLegacyPreviewFrameListener(listener: (image: LegacyImage) -> Unit): CameraView
Set legacy (camera1) preview frame listener.
listener
- lambda with image of type LegacyImage as its argument
which contains the preview frame from camera1 and its metadata.
The image data format stated by LegacyImage.format is android.graphics.ImageFormat
Return
instance of CameraView it is called on