UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
PglQRBarcode Class Reference

A class representing a QR code barcode. More...

#include <PglQRBarcode.h>

Inheritance diagram for PglQRBarcode:
AQRBarcode ABarcode2D <ISquareCell> <IBarcode2D> <IBarcodeItem_2D> <IPositionRuler> <IRotation>

Instance Methods

(instancetype- initWithStart:data:
 Initializes a new instance of the PglQRBarcode class with the specified start point and data.
 
(instancetype- initWithStart:dataManuallyEncoded:
 Initializes a new instance of the PglQRBarcode class with the specified start point and manually encoded data.
 
(NSString *) - description
 Returns a string that can be sent to the printer.
 
- Instance Methods inherited from AQRBarcode
(instancetype- initWithStart:manuallyEncodedData:
 This is used for cases where manual encoding of barcode data is desired.
 
- Instance Methods inherited from ABarcode2D
(NSString *) - NS_REQUIRES_SUPER
 

Additional Inherited Members

- Properties inherited from AQRBarcode
id< IPointstart
 The starting point for the QR code.
 
NSStringdata
 Automatically encoded data. Manually, DataManuallyEncoded, encoded has priority over automatic encoding.
 
NSArray< NSArray * > * dataManuallyEncoded
 Manually encoded data. Manually encoded has priority over automatic encoding.
 
QRCodeMaskEnum mask
 Mask used in the QR code generation.
 
QRCodeModelEnum model
 Model of the QR code.
 
QRCodeErrorCorrectionEnum errorCorrection
 Error correction level of the QR code.
 
id< ICellSquarecellSize
 Size of the cells that make up the QR code.
 
- Properties inherited from ABarcode2D
id< IRulerruler
 
id< IPointstart
 
NSString * data
 
RotateEnum rotation
 
- Properties inherited from <IBarcodeItem_2D>
id< IPointstart
 Position where barcode starts.
 
NSString * data
 The barcode content.
 
- Properties inherited from <IPositionRuler>
id< IRulerruler
 
- Properties inherited from <IRotation>
RotateEnum rotation
 
- Properties inherited from <ISquareCell>
id< ICellSquarecellSize
 Barcode cell size. Larger cell size results in barcodes that take up a larger area.
 

Detailed Description

A class representing a QR code barcode.

This class inherits from AQRBarcode and provides functionality for initializing and describing QR code barcodes.

Method Documentation

◆ description

- (NSString *) description

Returns a string that can be sent to the printer.

This method generates a string representation of the PglQRBarcode instance that is formatted and ready to be sent to a printer. The string includes all the necessary commands and data required for printing.

Returns
A string description of the PglQRBarcode instance.

Reimplemented from <IBarcode2D>.

◆ initWithStart:data:

- (instancetype) initWithStart: (id< IPoint >) start
data: (NSString *) data 

Initializes a new instance of the PglQRBarcode class with the specified start point and data.

Parameters
startThe starting point of the QR code.
dataThe data to be encoded in the QR code.
Returns
A new instance of PglQRBarcode.

Reimplemented from AQRBarcode.

◆ initWithStart:dataManuallyEncoded:

- (instancetype) initWithStart: (id< IPoint >) start
dataManuallyEncoded: (NSArray< NSValue * > *) dataManuallyEncoded 

Initializes a new instance of the PglQRBarcode class with the specified start point and manually encoded data.

Parameters
startThe starting point of the QR code.
dataManuallyEncodedAn array of manually encoded data points for the QR code.
Returns
A new instance of PglQRBarcode.

The documentation for this class was generated from the following file: