StarPrinter
The class that controls the printer
Constructor |
|
---|---|
Initialize object |
Property |
|
---|---|
Printer information |
|
Printer connection settings |
|
Status event for the printer |
|
Status event for the cash drawer |
|
Status event for an input device |
|
Status event for the customer display |
|
Open timeout (msec) |
|
Print timeout (msec) |
|
Get status timeout (msec) |
Method (for iOS 13 or later) |
|
---|---|
Open the printer |
|
Print (recommended) |
|
Get the printer status |
|
Close the printer |
Method (for iOS 12) |
|
---|---|
Open the printer |
|
print(command: String, completion: @escaping (Error?) -> Void) |
Print (recommended) |
getStatus(completion: @escaping (StarIO10.StarPrinterStatus?, Error?) -> Void) |
Get the printer status |
Close the printer |
Warning
Use the methods of this class depending on the OS version of the device you are running on. iOS 13 and later devices should use the Method (for iOS 13 or later), while iOS 12 devices should use the Method (for iOS 12).