BarcodeScannerFrameHandler

Performs barcode/QR code scanning on camera preview frames. Outputs results via BarcodeScannerFrameHandler.ResultHandler (addResultHandler).

Preview frame considered intercepted if at least one BarcodeScannerFrameHandler.ResultHandler returns true from BarcodeScannerFrameHandler.ResultHandler.handle

See also

Constructors

Link copied to clipboard
constructor(barcodeScanner: BarcodeScanner)

Types

Link copied to clipboard

Successor-class needed for cross-platform implementation.

Link copied to clipboard
object Companion
Link copied to clipboard

Continuously notified about barcode/QR code scanning results.

Properties

Link copied to clipboard
open override var isEnabled: Boolean

Functions

Link copied to clipboard

Registers result handler which will be notified about barcode/QR code scanning results.

Link copied to clipboard
open override fun handleFrame(previewFrame: FrameHandler.Frame): Boolean

Invoked for every new camera preview frame.

Link copied to clipboard
Link copied to clipboard

Set implementation of IBarcodeFilter, that will be applied to every frame after scanning and filter frames with undesired data.

Link copied to clipboard
fun setScanningInterval(scanningIntervalInMs: Long)

Set barcode scanning interval in milliseconds.