Barcode Generator

Defined in framework ScanditBarcodeCapture

SDCBarcodeGenerator
@interface SDCBarcodeGenerator : NSObject

Added in version 6.21.0

- generateWithString:imageWidth:error:
- (nullable UIImage *)generateWithString:(NSString *)string
                              imageWidth:(CGFloat)width
                                   error:(NSError **)error

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.

- generateWithData:imageWidth:error:
- (nullable UIImage *)generateWithData:(NSData *)data
                            imageWidth:(CGFloat)width
                                 error:(NSError **)error

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.

+ code39BarcodeGeneratorBuilderWithContext:
+ (SDCBarcodeGeneratorBuilder *)
  code39BarcodeGeneratorBuilderWithContext:(SDCDataCaptureContext *)context

Added in version 6.21.0

Create a Code 39 Barcode Generator builder for the provided context.

+ code128BarcodeGeneratorBuilderWithContext:
+ (SDCBarcodeGeneratorBuilder *)
  code128BarcodeGeneratorBuilderWithContext:(SDCDataCaptureContext *)context

Added in version 6.21.0

Create a Code 128 Barcode Generator builder for the provided context.

+ ean13BarcodeGeneratorBuilderWithContext:
+ (SDCBarcodeGeneratorBuilder *)
  ean13BarcodeGeneratorBuilderWithContext:(SDCDataCaptureContext *)context

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.

+ upcaBarcodeGeneratorBuilderWithContext:
+ (SDCBarcodeGeneratorBuilder *)
  upcaBarcodeGeneratorBuilderWithContext:(SDCDataCaptureContext *)context

Added in version 6.22.0

Create a UPCA Barcode Generator builder for the provided context.

+ interleavedTwoOfFiveBarcodeGeneratorBuilderWithContext:
+ (SDCBarcodeGeneratorBuilder *)
  interleavedTwoOfFiveBarcodeGeneratorBuilderWithContext:(SDCDataCaptureContext *)context

Added in version 6.21.0

Create an Interleaved Two-of-Five Barcode Generator builder for the provided context.

+ QRCodeBarcodeGeneratorBuilderWithContext:
+ (SDCQRCodeBarcodeGeneratorBuilder *)
  QRCodeBarcodeGeneratorBuilderWithContext:(SDCDataCaptureContext *)context

Added in version 6.21.0

Create a QRCode Barcode Generator builder for the provided context.

+ dataMatrixBarcodeGeneratorBuilderWithContext:
+ (SDCBarcodeGeneratorBuilder *)
  dataMatrixBarcodeGeneratorBuilderWithContext:(SDCDataCaptureContext *)context

Added in version 6.21.0

Create a DataMatrix Barcode Generator builder for the provided context.