Callback

interface Callback

Functions

Link copied to clipboard
open fun onCameraFailure()
Link copied to clipboard
open fun onCameraReady()
Link copied to clipboard
open fun onPreviewFrame(image: Image, rotationDegrees: Int)

Called as preview frames are displayed. This method should not close the image as this will be handled by the caller. This callback is invoked on a background thread but no intensive operation should be performed to avoid delaying other frame processing.

Link copied to clipboard