onPreviewImageAvailable

val onPreviewImageAvailable: (previewImage: Image) -> Unit?

Called with an Image suitable for preview or thumbnail updates, before the resulting Photo is available.

Only called if PhotoOutputOptions.previewImageTargetSize is set and the CameraDevice supports preview images (CameraDevice.supportsPreviewImage). It may be called on a background thread.