Class BarcodeScannerConfiguration

    • Method Detail

      • getOnlyAcceptDocuments

         final Boolean getOnlyAcceptDocuments()

        If true and extractedDocumentFormats is not empty, then barcodes that do not decode to one of the accepted document formats will be ignored.

        Default is false

      • setOnlyAcceptDocuments

         final Unit setOnlyAcceptDocuments(Boolean onlyAcceptDocuments)

        If true and extractedDocumentFormats is not empty, then barcodes that do not decode to one of the accepted document formats will be ignored.

        Default is false

      • getBarcodesRegexFilter

         final String getBarcodesRegexFilter()

        Regular expression filter for barcode text. If the barcode text does not match the regular expression, it will not be scanned. The default is an empty string (setting is turned off). This option overrides barcodesExtensionFilter option.

        Default is ""

      • setBarcodesRegexFilter

         final Unit setBarcodesRegexFilter(String barcodesRegexFilter)

        Regular expression filter for barcode text. If the barcode text does not match the regular expression, it will not be scanned. The default is an empty string (setting is turned off). This option overrides barcodesExtensionFilter option.

        Default is ""

      • getMinimumSizeScore

         final Double getMinimumSizeScore()

        Minimum acceptable value of a result BarcodeItem's sizeScore (between 0 and 1). Barcodes with a sizeScore less than this value will not be scanned. When set to 0, barcodes are returned no matter what their size is.

        Default is 0

      • setMinimumSizeScore

         final Unit setMinimumSizeScore(Double minimumSizeScore)

        Minimum acceptable value of a result BarcodeItem's sizeScore (between 0 and 1). Barcodes with a sizeScore less than this value will not be scanned. When set to 0, barcodes are returned no matter what their size is.

        Default is 0

      • getMinimumTextLength

         final Integer getMinimumTextLength()

        Optional minimum required text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only.

        Default is 0

      • setMinimumTextLength

         final Unit setMinimumTextLength(Integer minimumTextLength)

        Optional minimum required text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only.

        Default is 0

      • getMaximumTextLength

         final Integer getMaximumTextLength()

        Optional maximum text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only.

        Default is 0

      • setMaximumTextLength

         final Unit setMaximumTextLength(Integer maximumTextLength)

        Optional maximum text length of the detected barcode. The default is 0 (setting is turned off). NOTE - This feature works on ITF barcodes only.

        Default is 0

      • getMinimum1DBarcodesQuietZone

         final Integer getMinimum1DBarcodesQuietZone()

        Optional minimum required quiet zone on the barcode. Measured in modules (the smallest bar size on a barcode). The default is 10. NOTE - This feature works on ITF barcodes only.

        Default is 10

      • setMinimum1DBarcodesQuietZone

         final Unit setMinimum1DBarcodesQuietZone(Integer minimum1DBarcodesQuietZone)

        Optional minimum required quiet zone on the barcode. Measured in modules (the smallest bar size on a barcode). The default is 10. NOTE - This feature works on ITF barcodes only.

        Default is 10

      • getStripCheckDigits

         final Boolean getStripCheckDigits()

        If true, check digits for UPC, EAN and MSI Plessey codes are removed from the result. Has no effect if both single and double digit MSI Plessey checksums are enabled. The default is false.

        Default is false

      • setStripCheckDigits

         final Unit setStripCheckDigits(Boolean stripCheckDigits)

        If true, check digits for UPC, EAN and MSI Plessey codes are removed from the result. Has no effect if both single and double digit MSI Plessey checksums are enabled. The default is false.

        Default is false

      • getUseIATA2OF5Checksum

         final Boolean getUseIATA2OF5Checksum()

        If true, the optional check digit for IATA_2_OF_5 codes is used in validation. The default is true.

        Default is true

      • setUseIATA2OF5Checksum

         final Unit setUseIATA2OF5Checksum(Boolean useIATA2OF5Checksum)

        If true, the optional check digit for IATA_2_OF_5 codes is used in validation. The default is true.

        Default is true

      • getUseCode11Checksum

         final Boolean getUseCode11Checksum()

        If true, the optional check digit for CODE_11 codes is used in validation. The default is true.

        Default is true

      • setUseCode11Checksum

         final Unit setUseCode11Checksum(Boolean useCode11Checksum)

        If true, the optional check digit for CODE_11 codes is used in validation. The default is true.

        Default is true

      • getLowPowerMode

         final Boolean getLowPowerMode()

        If true, enables a mode that slightly decreases scanning quality and energy consumption. Increases scanning speed. If false, the mode is disabled. The default is false. Android only.

        Default is false

      • setLowPowerMode

         final Unit setLowPowerMode(Boolean lowPowerMode)

        If true, enables a mode that slightly decreases scanning quality and energy consumption. Increases scanning speed. If false, the mode is disabled. The default is false. Android only.

        Default is false