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

A class representing a Maxicode barcode for TSPL. More...

#include <MaxicodeBarcode.h>

Inheritance diagram for MaxicodeBarcode:
AMaxicodeBarcode <IRotation> <IMaxicodeBarcode> <IStartPoint> <IPositionRuler>

Instance Methods

(instancetype) - initWithStart:data:
 Initializes a new instance of the MaxicodeBarcode class with the specified start point and data.
 
(NSString *) - description
 Returns a string that can be sent to the printer.
 
- Instance Methods inherited from AMaxicodeBarcode
(instancetype) - init
 

Properties

id< IPointstart
 The starting point of the barcode.
 
id< IMaxicodeDatadata
 The data to be encoded in the barcode.
 
RotateEnum rotation
 The rotation of the barcode.
 
BOOL zipperPattern
 Zipper pattern can be used to help detect printing defects e.g. light/dark printing.
 
- Properties inherited from AMaxicodeBarcode
id< IMaxicodeDatadata
 
id< IRulerruler
 
id< IPointstart
 
- Properties inherited from <IMaxicodeBarcode>
id< IMaxicodeDatadata
 The barcode content.
 
- Properties inherited from <IStartPoint>
id< IPointstart
 
- Properties inherited from <IPositionRuler>
id< IRulerruler
 
- Properties inherited from <IRotation>
RotateEnum rotation
 

Detailed Description

A class representing a Maxicode barcode for TSPL.

This class inherits from AMaxicodeBarcode and implements the IRotation protocol, providing functionality for initializing and describing Maxicode barcodes in TSPL.

Method Documentation

◆ description

- (NSString *) description

Returns a string that can be sent to the printer.

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

Returns
A string description of the MaxicodeBarcode instance.

Reimplemented from <IMaxicodeBarcode>.

◆ initWithStart:data:

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

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

Parameters
startThe starting point of the barcode.
dataThe data to be encoded in the barcode.
Returns
A new instance of MaxicodeBarcode.

Implements AMaxicodeBarcode.

Property Documentation

◆ data

- (id<IMaxicodeData>) data
readwritenonatomicstrong

The data to be encoded in the barcode.

◆ rotation

- (RotateEnum) rotation
readwritenonatomicassign

The rotation of the barcode.

◆ start

- (id<IPoint>) start
readwritenonatomicstrong

The starting point of the barcode.

◆ zipperPattern

- (BOOL) zipperPattern
readwritenonatomicassign

Zipper pattern can be used to help detect printing defects e.g. light/dark printing.


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