CapturePhotoCallbacks

data class CapturePhotoCallbacks(val onWillBeginCapture: () -> Unit? = null, val onWillCapturePhoto: () -> Unit? = null, val onDidCapturePhoto: () -> Unit? = null, val onPreviewImageAvailable: (previewImage: Image) -> Unit? = null)

Callbacks of a CameraPhotoOutput.capturePhoto call.

Constructors

Link copied to clipboard
constructor(onWillBeginCapture: () -> Unit? = null, onWillCapturePhoto: () -> Unit? = null, onDidCapturePhoto: () -> Unit? = null, onPreviewImageAvailable: (previewImage: Image) -> Unit? = null)

Properties

Link copied to clipboard

Called right after the pipeline captured the photo.

Link copied to clipboard
val onPreviewImageAvailable: (previewImage: Image) -> Unit?

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

Link copied to clipboard

Called when the pipeline starts the capture.

Link copied to clipboard

Called right before the pipeline captures the photo.