A class representing a QR code barcode. More...
#include <PglQRBarcode.h>
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. | |
![]() | |
(instancetype) | - initWithStart:manuallyEncodedData: |
This is used for cases where manual encoding of barcode data is desired. | |
![]() | |
(NSString *) | - NS_REQUIRES_SUPER |
Additional Inherited Members | |
![]() | |
id< IPoint > | start |
The starting point for the QR code. | |
NSString * | data |
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< ICellSquare > | cellSize |
Size of the cells that make up the QR code. | |
![]() | |
id< IRuler > | ruler |
id< IPoint > | start |
NSString * | data |
RotateEnum | rotation |
![]() | |
id< IPoint > | start |
Position where barcode starts. | |
NSString * | data |
The barcode content. | |
![]() | |
id< IRuler > | ruler |
![]() | |
RotateEnum | rotation |
![]() | |
id< ICellSquare > | cellSize |
Barcode cell size. Larger cell size results in barcodes that take up a larger area. | |
A class representing a QR code barcode.
This class inherits from AQRBarcode and provides functionality for initializing and describing QR code barcodes.
- (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.
Reimplemented from <IBarcode2D>.
- (instancetype) initWithStart: | (id< IPoint >) | start | |
data: | (NSString *) | data |
Initializes a new instance of the PglQRBarcode class with the specified start point and data.
start | The starting point of the QR code. |
data | The data to be encoded in the QR code. |
Reimplemented from AQRBarcode.
- (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.
start | The starting point of the QR code. |
dataManuallyEncoded | An array of manually encoded data points for the QR code. |