Barcode Generator
Defined in framework ScanditBarcodeCapture
- BarcodeGenerator
open class BarcodeGenerator : NSObject
Added in version 6.21.0
- generate
open func generate(with data: Data, imageWidth width: CGFloat) throws -> UIImage
Added in version 6.21.0
Generate a code of the given width for the supplied data. If the data is not compatible with the generator’s symbology, an exception is thrown.
imageWidth specifies the width of the image in pixels.
Note
The resulting UIImage will use the same scale as the device screen.
- generate
open func generate(with string: String, imageWidth width: CGFloat) throws -> UIImage
Added in version 6.21.0
Generate a code of the given width for the supplied text. If the text is not compatible with the generator’s symbology, an exception is thrown.
imageWidth specifies the width of the image in pixels.
Note
The resulting UIImage will use the same scale as the device screen.
- code39BarcodeGeneratorBuilder
open class func code39BarcodeGeneratorBuilder(with context: DataCaptureContext) -> BarcodeGeneratorBuilder
Added in version 6.21.0
Create a Code 39 Barcode Generator builder for the provided context.
- code128BarcodeGeneratorBuilder
open class func code128BarcodeGeneratorBuilder(with context: DataCaptureContext) -> BarcodeGeneratorBuilder
Added in version 6.21.0
Create a Code 128 Barcode Generator builder for the provided context.
- ean13BarcodeGeneratorBuilder
open class func ean13BarcodeGeneratorBuilder(with context: DataCaptureContext) -> BarcodeGeneratorBuilder
Added in version 6.21.0
Create an EAN13 Barcode Generator builder for the provided context.
Note
EAN13 codes are composed of 13 symbols. If 12 symbols are provided, it is assumed that the checksum is missing and it is generated and appended to the end.
- upcaBarcodeGeneratorBuilder
open class func upcaBarcodeGeneratorBuilder(with context: DataCaptureContext) -> BarcodeGeneratorBuilder
Added in version 6.22.0
Create a UPCA Barcode Generator builder for the provided context.
- interleavedTwoOfFiveBarcodeGeneratorBuilder
open class func interleavedTwoOfFiveBarcodeGeneratorBuilder(with context: DataCaptureContext) -> BarcodeGeneratorBuilder
Added in version 6.21.0
Create an Interleaved Two-of-Five Barcode Generator builder for the provided context.
- qrCodeBarcodeGeneratorBuilder
open class func qrCodeBarcodeGeneratorBuilder(with context: DataCaptureContext) -> QRCodeBarcodeGeneratorBuilder
Added in version 6.21.0
Create a QRCode Barcode Generator builder for the provided context.
- dataMatrixBarcodeGeneratorBuilder
open class func dataMatrixBarcodeGeneratorBuilder(with context: DataCaptureContext) -> BarcodeGeneratorBuilder
Added in version 6.21.0
Create a DataMatrix Barcode Generator builder for the provided context.
- aztecBarcodeGeneratorBuilder
open class func aztecBarcodeGeneratorBuilder(with context: DataCaptureContext) -> AztecBarcodeGeneratorBuilder
Added in version 6.28.0
Create an Aztec Barcode Generator builder for the provided context.