BarcodeFormatEan8

class BarcodeFormatEan8(var activated: IBarcodeFormat.Activation = Activation.Enable) : IBarcodeFormat

Constructors

Link copied to clipboard
constructor(activated: IBarcodeFormat.Activation = Activation.Enable)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun get2DigitAddCommand(activated: IBarcodeFormat.Activation = Activation.Disable): String

Get the command to Activation.Enable / Activation.Disable the two-digit add-on code. An EAN-8 barcode can be augmented with a two-digit add-on code to form a new one. Activation.Disable : The engine decodes EAN-8 and ignores the add-on code when presented with an EAN-8 plus 2-digit add-on barcode. It can also decode EAN-8 barcodes without 2-digit add-on codes. Activation.Enable : The engine decodes a mix of EAN-8 barcodes with and without 2-digit add-on codes.

Link copied to clipboard
fun get5DigitAddCommand(activated: IBarcodeFormat.Activation = Activation.Disable): String

Get the command to Activation.Enable / Activation.Disable the five-digit add-on code. An EAN-8 barcode can be augmented with a five-digit add-on code to form a new one. Activation.Disable : The engine decodes EAN-8 and ignores the add-on code when presented with an EAN-8 plus 5-digit add-on barcode. It can also decode EAN-8 barcodes without 5-digit add-on codes. Activation.Enable : The engine decodes a mix of EAN-8 barcodes with and without 5-digit add-on codes.

Link copied to clipboard
fun getAddOnCodeRequiredCommand(activated: IBarcodeFormat.Activation = Activation.Disable): String

Get the command Activation.Enable / Activation.Disable to required or not the add-on. When enable, the engine will only read EAN-8 barcodes that contain add-on codes.

Link copied to clipboard
fun getConvertEA8ToEA13(activated: IBarcodeFormat.Activation = Activation.Disable): String

Get the command Activation.Enable / Activation.Disable to convert EAN-8 to EAN-13. When disable, the EAN-8 decoded data will be transmitted as EAN-8 data, without conversion.

Link copied to clipboard
open override fun getEnableCommand(): String

Get the command Activation.Enable / Activation.Disable to the barcode format EAN-8.

Link copied to clipboard
Link copied to clipboard
fun getTransmitCheckCharCommand(transmitCheckChar: IBarcodeFormat.TransmitCheckCharMiss = TransmitCheckCharMiss.Transmit): String

Get the command TransmitCheckCharMiss.Transmit / TransmitCheckCharMiss.DoNotTransmit to the transmit EAN-8 check character.