ImageCaptureCallback

Receives image capture results on the main thread.

Implementations should return quickly and offload heavy work to a background thread to avoid blocking the UI.

Inheritors

Functions

Link copied to clipboard
abstract fun onError(e: Exception)

Called on the main thread when the capture fails.

Link copied to clipboard
abstract fun onImageCaptured(jpegImageBytes: ByteArray, imageOrientation: RotationAngle)

Called on the main thread when the capture has completed.