Package-level declarations

Types

Link copied to clipboard

Can be either numeric or alphanumeric and is only relevant for Format Codes 59 and 62.

Link copied to clipboard
data class BarcodeAccumulationConfiguration(var minConfirmationsStandaloneEAN: Int = 1, var accumulationTime: Int = 500, var removeUnconnectedResults: Boolean = true, var method: BarcodeAccumulationMethod = BarcodeAccumulationMethod.INTERPOLATE_BY_CAMERA) : Parcelable

Configuration for how to accumulate results.

Link copied to clipboard

The method how to display barcodes from previous frames.

Link copied to clipboard
class BarcodeAutoSnappingController(val cameraView: IScanbotCameraView, frameHandler: FrameHandler)

Controls auto-snapping process by observing document scanning results from BarcodeScannerFrameHandler.

Link copied to clipboard

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

Link copied to clipboard

Type of barcode document format used.

Link copied to clipboard

Barcode document formats.

Link copied to clipboard

Subclass of BarcodeFilter that only accepts barcodes with extensions.

Link copied to clipboard

Basic implementation of IBarcodeFilter that accepts all barcodes except for duplicates.

Link copied to clipboard

Enumerates barcode formats.

Link copied to clipboard
data class BarcodeFormatAustraliaPostConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var australiaPostCustomerFormat: AustraliaPostCustomerFormat = AustraliaPostCustomerFormat.ALPHA_NUMERIC) : BarcodeFormatFourStateConfigurationBase, Parcelable

Australia Post barcode configuration. Add to scanner configuration to scan Australia Post barcodes.

Link copied to clipboard
data class BarcodeFormatAztecConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var gs1Handling: Gs1Handling = Gs1Handling.PARSE) : BarcodeFormatTwoDConfigurationBase, Parcelable

Aztec configuration. Add to scanner configuration to scan Aztec codes.

Link copied to clipboard
data class BarcodeFormatCodabarConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var minimumTextLength: Int = 1, var maximumTextLength: Int = 0, var returnStartEnd: Boolean = false) : BarcodeFormatOneDConfigurationBase, Parcelable

Codabar barcode configuration. Add to scanner configuration to scan Codabar barcodes.

Link copied to clipboard
data class BarcodeFormatCode11Configuration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var stripCheckDigits: Boolean = false, var minimumTextLength: Int = 1, var maximumTextLength: Int = 0, var checksum: Boolean = true) : BarcodeFormatOneDConfigurationBase, Parcelable

Code 11 barcode configuration. Add to scanner configuration to scan Code 11 barcodes.

Link copied to clipboard
data class BarcodeFormatCode128Configuration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var gs1Handling: Gs1Handling = Gs1Handling.PARSE, var minimumTextLength: Int = 1, var maximumTextLength: Int = 0) : BarcodeFormatOneDConfigurationBase, Parcelable

Code 128 barcode configuration. Add to scanner configuration to scan Code 128 barcodes.

Link copied to clipboard
data class BarcodeFormatCode2Of5Configuration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var stripCheckDigits: Boolean = false, var minimumTextLength: Int = 1, var maximumTextLength: Int = 0, var iata2of5: Boolean = true, var code25: Boolean = false, var industrial2of5: Boolean = true, var useIATA2OF5Checksum: Boolean = true) : BarcodeFormatOneDConfigurationBase, Parcelable

Configuration for all 2-of-5 barcode types (except Interleaved 2-of-5, which is handled by ItfConfig). Add to scanner configuration to scan Code 25, IATA 2-of-5 and Industrial 2-of-5 barcodes.

Link copied to clipboard
data class BarcodeFormatCode39Configuration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var stripCheckDigits: Boolean = false, var minimumTextLength: Int = 1, var maximumTextLength: Int = 0, var code32: Boolean = false, var code39: Boolean = true, var pzn7: Boolean = true, var pzn8: Boolean = true, var tryCode39ExtendedMode: Boolean = false, var useCode39CheckDigit: Boolean = false) : BarcodeFormatOneDConfigurationBase, Parcelable

Code 39 barcode and derivatives configuration. Add to scanner configuration to scan Code 39, Code 32 (Italian Pharmacode), PZN7 and PZN8 (Pharmazentralnummer) barcodes.

Link copied to clipboard
data class BarcodeFormatCode93Configuration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var stripCheckDigits: Boolean = false, var minimumTextLength: Int = 1, var maximumTextLength: Int = 0) : BarcodeFormatOneDConfigurationBase, Parcelable

Code 93 barcode configuration. Add to scanner configuration to scan Code 93 barcodes.

Link copied to clipboard
data class BarcodeFormatCommonConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var stripCheckDigits: Boolean = false, var minimumTextLength: Int = 1, var maximumTextLength: Int = 0, var gs1Handling: Gs1Handling = Gs1Handling.PARSE, var strictMode: Boolean = true, var formats: List<BarcodeFormat> = listOf( BarcodeFormat.AZTEC, BarcodeFormat.CODABAR, BarcodeFormat.CODE_39, BarcodeFormat.CODE_93, BarcodeFormat.CODE_128, BarcodeFormat.DATA_MATRIX, BarcodeFormat.DATABAR, BarcodeFormat.DATABAR_EXPANDED, BarcodeFormat.DATABAR_LIMITED, BarcodeFormat.EAN_13, BarcodeFormat.EAN_8, BarcodeFormat.ITF, BarcodeFormat.MICRO_QR_CODE, BarcodeFormat.PDF_417, BarcodeFormat.QR_CODE, BarcodeFormat.UPC_A, BarcodeFormat.UPC_E )) : BarcodeFormatConfigurationBase, Parcelable

Convenience configuration for enabling the scanning of multiple barcode formats with a common configuration. Add to scanner configuration to enable and configure the scanning of multiple barcodes.

data class BarcodeFormatCommonFourStateConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var formats: List<BarcodeFormat> = listOf( BarcodeFormat.AUSTRALIA_POST, BarcodeFormat.JAPAN_POST, BarcodeFormat.ROYAL_MAIL, BarcodeFormat.ROYAL_TNT_POST, BarcodeFormat.USPS_INTELLIGENT_MAIL )) : BarcodeFormatConfigurationBase, Parcelable

Convenience configuration for enabling the scanning of multiple four-state barcode formats with a common configuration. Add to scanner configuration to enable and configure the scanning of multiple four-state codes.

Link copied to clipboard
data class BarcodeFormatCommonOneDConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var stripCheckDigits: Boolean = false, var minimumTextLength: Int = 1, var maximumTextLength: Int = 0, var gs1Handling: Gs1Handling = Gs1Handling.PARSE, var formats: List<BarcodeFormat> = listOf( BarcodeFormat.CODABAR, BarcodeFormat.CODE_11, BarcodeFormat.CODE_25, BarcodeFormat.CODE_32, BarcodeFormat.CODE_39, BarcodeFormat.CODE_93, BarcodeFormat.CODE_128, BarcodeFormat.DATABAR, BarcodeFormat.DATABAR_EXPANDED, BarcodeFormat.DATABAR_LIMITED, BarcodeFormat.EAN_8, BarcodeFormat.EAN_13, BarcodeFormat.IATA_2_OF_5, BarcodeFormat.INDUSTRIAL_2_OF_5, BarcodeFormat.ITF, BarcodeFormat.MSI_PLESSEY, BarcodeFormat.PHARMA_CODE, BarcodeFormat.PZN_7, BarcodeFormat.PZN_8, BarcodeFormat.UPC_A, BarcodeFormat.UPC_E )) : BarcodeFormatConfigurationBase, Parcelable

Convenience configuration for enabling the scanning of multiple linear (1D) barcode formats with a common configuration. Add to scanner configuration to enable and configure the scanning of multiple linear (1D) barcode formats.

Link copied to clipboard
data class BarcodeFormatCommonTwoDConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var gs1Handling: Gs1Handling = Gs1Handling.PARSE, var strictMode: Boolean = true, var formats: List<BarcodeFormat> = listOf( BarcodeFormat.AZTEC, BarcodeFormat.DATA_MATRIX, BarcodeFormat.MAXI_CODE, BarcodeFormat.MICRO_QR_CODE, BarcodeFormat.MICRO_PDF_417, BarcodeFormat.PDF_417, BarcodeFormat.QR_CODE, BarcodeFormat.RMQR_CODE )) : BarcodeFormatConfigurationBase, Parcelable

Convenience configuration for enabling the scanning of multiple 2D codes with a common configuration. Add to scanner configuration to enable and configure the scanning of multiple 2D codes.

Link copied to clipboard

Base class for all barcode configurations.

Link copied to clipboard
data class BarcodeFormatDataBarConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var gs1Handling: Gs1Handling = Gs1Handling.PARSE) : BarcodeFormatOneDConfigurationBase, Parcelable

GS1 DataBar barcode configuration. Add to scanner configuration to scan GS1 DataBar-14, GS1 DataBar-14 Truncated, GS1 DataBar-14 Stacked and GS1 DataBar-14 Stacked Omnidirectional barcodes.

data class BarcodeFormatDataBarExpandedConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var gs1Handling: Gs1Handling = Gs1Handling.PARSE) : BarcodeFormatOneDConfigurationBase, Parcelable

GS1 DataBar Expanded barcode configuration. Add to scanner configuration to scan GS1 DataBar Expanded and GS1 DataBar Expanded Stacked barcodes.

Link copied to clipboard
data class BarcodeFormatDataBarLimitedConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var gs1Handling: Gs1Handling = Gs1Handling.PARSE) : BarcodeFormatOneDConfigurationBase, Parcelable

GS1 DataBar Limited barcode configuration. Add to scanner configuration to scan GS1 DataBar Limited barcodes.

Link copied to clipboard
data class BarcodeFormatDataMatrixConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var gs1Handling: Gs1Handling = Gs1Handling.PARSE) : BarcodeFormatTwoDConfigurationBase, Parcelable

DataMatrix configuration. Add to scanner configuration to scan DataMatrix and DataMatrix rectangular extensions (DMRE) codes.

Link copied to clipboard

Base class for all four-state barcode configurations.

Link copied to clipboard
data class BarcodeFormatGs1CompositeConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var gs1Handling: Gs1Handling = Gs1Handling.PARSE, var strictMode: Boolean = true) : BarcodeFormatConfigurationBase, Parcelable

GS1 Composite configuration. Add to scanner configuration to scan GS1 Composite barcodes.

Link copied to clipboard
data class BarcodeFormatItfConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var minimumTextLength: Int = 1, var maximumTextLength: Int = 0) : BarcodeFormatOneDConfigurationBase, Parcelable

ITF (Interleaved 2-of-5) barcode configuration. Add to scanner configuration to scan Interleaved 2-of-5 (ITF) barcodes.

Link copied to clipboard
data class BarcodeFormatJapanPostConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false) : BarcodeFormatFourStateConfigurationBase, Parcelable

Japan Post barcode configuration. Add to scanner configuration to scan Japan Post barcodes.

Link copied to clipboard
data class BarcodeFormatMaxiCodeConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false) : BarcodeFormatTwoDConfigurationBase, Parcelable

MaxiCode configuration. Add to scanner configuration to scan MaxiCode codes.

Link copied to clipboard
data class BarcodeFormatMicroPdf417Configuration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var gs1Handling: Gs1Handling = Gs1Handling.PARSE, var strictMode: Boolean = true) : BarcodeFormatTwoDConfigurationBase, Parcelable

MicroPDF417 configuration. Add to scanner configuration to scan MicroPDF417 codes.

Link copied to clipboard
data class BarcodeFormatMsiPlesseyConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var stripCheckDigits: Boolean = false, var minimumTextLength: Int = 1, var maximumTextLength: Int = 0, var checksumAlgorithms: List<MsiPlesseyChecksumAlgorithm> = listOf( MsiPlesseyChecksumAlgorithm.MOD_10 )) : BarcodeFormatOneDConfigurationBase, Parcelable

MSI Plessey barcode configuration. Add to scanner configuration to scan MSI Plessey barcodes.

Link copied to clipboard

Base class for all linear (1D) barcode configurations.

Link copied to clipboard
data class BarcodeFormatPdf417Configuration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var gs1Handling: Gs1Handling = Gs1Handling.PARSE, var strictMode: Boolean = true) : BarcodeFormatTwoDConfigurationBase, Parcelable

PDF417 configuration. Add to scanner configuration to scan PDF417 codes.

Link copied to clipboard
data class BarcodeFormatPharmaCodeConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var minimumValue: Int = 16, var allowNarrowBarsOnly: Boolean = false, var allowWideBarsOnly: Boolean = false) : BarcodeFormatOneDConfigurationBase, Parcelable

PharmaCode barcode configuration. Add to scanner configuration to scan linear (1D) Laetus Pharmacode barcodes. Two-track PharmaCode scanning is configured separately through the PharmaCodeTwoTrackConfig class.

data class BarcodeFormatPharmaCodeTwoTrackConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimumValue: Int = 364) : BarcodeFormatFourStateConfigurationBase, Parcelable

PHARMA_CODE_TWO_TRACK barcode configuration. Add to scanner configuration to scan Laetus two-track PharmaCode barcodes. Linear (i.e. one-track) PharmaCode scanning is configured separately through the PharmaCodeConfig class.

Link copied to clipboard
data class BarcodeFormatQrCodeConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var gs1Handling: Gs1Handling = Gs1Handling.PARSE, var strictMode: Boolean = true, var qr: Boolean = true, var microQr: Boolean = false, var rmqr: Boolean = false) : BarcodeFormatTwoDConfigurationBase, Parcelable

QR Code configuration. Add to scanner configuration to scan QR codes, Micro QR codes and rectangular Micro QR (rMQR) codes.

Link copied to clipboard
data class BarcodeFormatRoyalMailConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var stripCheckDigits: Boolean = false) : BarcodeFormatFourStateConfigurationBase, Parcelable

Royal Mail barcode configuration. Add to scanner configuration to scan Royal Mail (a.k.a. RM4SCC, CBC, BPO 4-State) barcodes.

Link copied to clipboard
data class BarcodeFormatRoyalTntPostConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false) : BarcodeFormatFourStateConfigurationBase, Parcelable

Royal TNT Post barcode configuration. Add to scanner configuration to scan Royal TNT Post (a.k.a. KIX, Klant IndeX) barcodes.

Link copied to clipboard

Lists of barcode formats to decode.

Link copied to clipboard

Base class for all 2D barcode configurations.

Link copied to clipboard
data class BarcodeFormatUpcEanConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false, var minimum1DQuietZoneSize: Int = 6, var stripCheckDigits: Boolean = false, var ean8: Boolean = true, var ean13: Boolean = true, var upca: Boolean = true, var upce: Boolean = true, var extensions: UpcEanExtensionBehavior = UpcEanExtensionBehavior.ALLOW_ANY) : BarcodeFormatOneDConfigurationBase, Parcelable

UPC/EAN barcode configuration. Add to scanner configuration to scan EAN-8, EAN-13, UPC-E and UPC-A barcodes.

data class BarcodeFormatUspsIntelligentMailConfiguration(var regexFilter: String = "", var minimumSizeScore: Double = 0.0, var addAdditionalQuietZone: Boolean = false) : BarcodeFormatFourStateConfigurationBase, Parcelable

USPS Intelligent Mail barcode configuration. Add to scanner configuration to scan USPS Intelligent Mail (a.k.a. USPS OneCode, USPS-STD-11) barcodes.

Link copied to clipboard
data class BarcodeItem(val text: String, val rawBytes: ByteArray, val rawBytesEncodings: List<RangeEncoding>, val structuredAppendInfo: StructuredAppendInfo?, val format: BarcodeFormat = BarcodeFormat.NONE, val quad: List<Point>, val quadNormalized: List<PointF>, val extendedQuad: List<Point>, val extendedQuadNormalized: List<PointF>, val isUpsideDown: Boolean = false, val sourceImage: ImageRef? = null, val upcEanExtension: String, val isGS1Message: Boolean = false, val isGS1CompositePart: Boolean = false, val dataBarStackSize: Int = 1, val sizeScore: Double = 0.0, val extractedDocument: GenericDocument?, val globalIndex: Int = -1) : AutoCloseable, Parcelable

A single barcode found in the input image. Barcodes with the same content but different locations in the image are considered separate barcodes.

Link copied to clipboard

Subclass of BarcodeFilter that only accepts barcodes matching regex string.

Link copied to clipboard
interface BarcodeScanner

Scans bar codes and QR codes.

Link copied to clipboard
data class BarcodeScannerConfiguration(var barcodeFormatConfigurations: List<BarcodeFormatConfigurationBase> = listOf( BarcodeFormatCommonConfiguration( ) ), var extractedDocumentFormats: List<BarcodeDocumentFormat> = listOf( BarcodeDocumentFormat.AAMVA, BarcodeDocumentFormat.BOARDING_PASS, BarcodeDocumentFormat.DE_MEDICAL_PLAN, BarcodeDocumentFormat.MEDICAL_CERTIFICATE, BarcodeDocumentFormat.ID_CARD_PDF_417, BarcodeDocumentFormat.SEPA, BarcodeDocumentFormat.SWISS_QR, BarcodeDocumentFormat.VCARD, BarcodeDocumentFormat.GS1, BarcodeDocumentFormat.HIBC ), var onlyAcceptDocuments: Boolean = false, var returnBarcodeImage: Boolean = false, var engineMode: BarcodeScannerEngineMode = BarcodeScannerEngineMode.NEXT_GEN, var accumulationConfig: BarcodeAccumulationConfiguration = BarcodeAccumulationConfiguration( ), var optimizedForOverlays: Boolean = false) : Parcelable

Configuration for the barcode scanner.

Link copied to clipboard

The engine mode for barcode scanning.

Link copied to clipboard

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

Link copied to clipboard
data class BarcodeScannerResult(val barcodes: List<BarcodeItem>, val success: Boolean) : AutoCloseable, Parcelable

The result of barcode scanning.

Link copied to clipboard
Link copied to clipboard

Enumerates character encodings.

Link copied to clipboard

Manages barcode scanning operations and scanner initialization.

Link copied to clipboard

GS1 message handling options. The GS1 standard defines a key-value format for business-centric data that can be encoded into many 1D and 2D barcode types. https://ref.gs1.org/standards/genspecs/

Link copied to clipboard

An interface for a barcode filtering that can be used in barcode scanning RTU-UI components. You can customize the filtering of barcode results coming from RTU-UI barcode scanners by implementing a subclass of this class and pass this class to the barcode scanning RTU-UI component as a part of configuration.

Link copied to clipboard

Checksum algorithm for MSI_PLESSEY.

Link copied to clipboard
data class RangeEncoding(val start: Int, val end: Int, val encoding: CharacterEncoding) : Parcelable

A character encoding for a given range of bytes.

Link copied to clipboard
data class StructuredAppendInfo(val count: Int, val index: Int, val id: String) : Parcelable

The structured append mode can be used to split a message across multiple barcodes.

Link copied to clipboard
class SuccessFrameDebouncer(var interval: Long = 0)

Allows to keep track of the interval between successful events

Link copied to clipboard

Behavior when scanning UPC/EAN barcodes with EAN-2 or EAN-5 extensions.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun BarcodeScannerConfiguration.Companion.create(barcodeFormats: List<BarcodeFormat> = BarcodeFormatCommonConfiguration.default().formats, extractedDocumentFormats: List<BarcodeDocumentFormat> = BarcodeScannerConfiguration.default().extractedDocumentFormats, onlyAcceptDocuments: Boolean = BarcodeScannerConfiguration.default().onlyAcceptDocuments): BarcodeScannerConfiguration

Simplified create configuration method to set barcode formats and document formats filters.

Link copied to clipboard
fun BarcodeScannerConfiguration.setBarcodeFormats(barcodeFormats: List<BarcodeFormat> = BarcodeFormatCommonConfiguration.default().formats)

Simplified extension configuration function that set the list of barcode formats to scan. By default, the most commonly used formats are enabled. Overrides BarcodeScannerConfiguration.barcodeFormatConfigurations list of configurations.