DefaultBarcodeScanner

Manages barcode scanning operations and scanner initialization.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Returns a copy of the current configuration.

Link copied to clipboard
open override fun enableBarcodeScan(barcodeScanEnabled: Boolean)
Link copied to clipboard
open override fun scanFromBitmap(bitmap: Bitmap, frameOrientation: Int): BarcodeScannerResult?

Scan barcodes from the bitmap.

Link copied to clipboard
open override fun scanFromJpeg(jpeg: ByteArray, frameOrientation: Int): BarcodeScannerResult?

Scan barcodes from the jpeg image.

Link copied to clipboard
open override fun scanFromNv21(nv21: ByteArray, width: Int, height: Int, frameOrientation: Int): BarcodeScannerResult?

Scan barcodes from the nv21 frame.

open override fun scanFromNv21(nv21: ByteArray, width: Int, height: Int, frameOrientation: Int, finderRect: Rect?): BarcodeScannerResult?

Scan barcodes from the nv21 frame within the viewfinder rectangle.

Link copied to clipboard
open override fun scanFromRgba(img: ByteArray, width: Int, height: Int, frameOrientation: Int): BarcodeScannerResult?

Scan barcodes from the RGBA image.

Link copied to clipboard
open override fun setConfiguration(configuration: BarcodeScannerConfiguration)

Sets the configuration for the barcode scanner.