BarcodeFormatUPCA

class BarcodeFormatUPCA(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(enable: IBarcodeFormat.Activation = Activation.Disable): String

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

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

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

Link copied to clipboard

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

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

Get the command Activation.Enable / Activation.Disable to the barcode format UPC-A.

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

Get the command TransmitCheckCharMiss.Transmit / TransmitCheckCharMiss.DoNotTransmit to the transmit UPC-A check character. UPC-A is 8 digits in length with the last one as its check character used to verify the integrity of the data.

Link copied to clipboard
fun getTransmitPreambleCharCommand(transmitPreambleCharacter: IBarcodeFormat.TransmitPreambleCharacter = TransmitPreambleCharacter.SystemCharacter): String

Get the command TransmitPreambleCharacter.SystemCharacter / TransmitPreambleCharacter.NoPreamble / TransmitPreambleCharacter.SystemCharacterAndCountryCode to transmit preamble character for UPC-A code. Preamble characters (Country Code and System Character) can be transmitted as part of a UPC-A barcode. Select one of the following options for transmitting UPC-A preamble to the host device: transmit system character only, transmit system character and country code (“0” for USA), or transmit no preamble.