Base class for QR Code 2D barcode. More...
#include <AQRBarcode.h>
Instance Methods | |
(instancetype) | - initWithStart:data: |
Used for most cases where data will be encoded automatically into barcode. | |
(instancetype) | - initWithStart:manuallyEncodedData: |
This is used for cases where manual encoding of barcode data is desired. | |
![]() | |
(NSString *) | - NS_REQUIRES_SUPER |
![]() | |
(NSString *) | - description |
Returns the string that can be sent to printer. | |
Properties | |
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. | |
Base class for QR Code 2D barcode.
Data encoded in a QR barcode can be encoded automatically or manually. Unless there is a need to optimize the amount of data stored in the barcode, automatic encoding should be used.
- (instancetype) initWithStart: | (id< IPoint >) | start | |
data: | (NSString *) | data |
Used for most cases where data will be encoded automatically into barcode.
Reimplemented in PglQRBarcode, and QRBarcode.
- (instancetype) initWithStart: | (id< IPoint >) | start | |
manuallyEncodedData: | (NSArray< NSArray * > *) | dataManuallyEncoded |
This is used for cases where manual encoding of barcode data is desired.
Reimplemented in QRBarcode.
|
readwritenonatomicstrong |
Size of the cells that make up the QR code.
|
readwritenonatomicstrong |
Automatically encoded data. Manually, DataManuallyEncoded, encoded has priority over automatic encoding.
Data can be encoded automatically or manually. If there is manually encoded data, this automatically encoded data will be ignored.
Manually encoded data. Manually encoded has priority over automatic encoding.
Data can be encoded automatically or manually. If there is automatically encoded data, it is ignored and this manually encoded data will be used.
For manually encoding data, a list of pairs of strings and their related encoding method can be provided using this property.
|
readwritenonatomicassign |
Error correction level of the QR code.
|
readwritenonatomicassign |
Mask used in the QR code generation.
|
readwritenonatomicassign |
Model of the QR code.