BarcodeScanner

interface BarcodeScanner

Scans bar codes and QR codes.

Inheritors

Functions

Link copied to clipboard

Returns a copy of the current configuration.

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

Scan barcodes from the bitmap.

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

Scan barcodes from the jpeg image.

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

Scan barcodes from the nv21 frame.

abstract 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
abstract fun scanFromRgba(img: ByteArray, width: Int, height: Int, frameOrientation: Int): BarcodeScannerResult?

Scan barcodes from the RGBA image.

Link copied to clipboard
abstract fun setConfiguration(configuration: BarcodeScannerConfiguration)

Sets the configuration for the barcode scanner.