StarPrinter
The class that controls the printer
Constructor |
|
|---|---|
Initialize object |
Property |
Default value |
Type |
|
|---|---|---|---|
Printer information |
nil |
||
Printer connection settings |
Value set in constructor |
||
Template |
nil |
||
Error details |
StarIO10ErrorDetail() |
||
Status event for the printer |
nil |
||
Status event for the cash drawer |
nil |
||
Status event for an input device |
nil |
||
Status event for the customer display |
nil |
||
Open timeout (msec) |
10000 |
||
Print timeout (msec) |
30000 |
||
Get status timeout (msec) |
5000 |
||
Set/Get Star Configuration timeout(msec) |
90000 |
||
Control the setting of printer |
nil |
Method (for iOS 13 or later) |
|
|---|---|
Open the printer |
|
print(command: String, starSpoolJobSettings: StarSpoolJobSettings) async |
Print using the printer’s spooler function |
Print binary data |
|
Get the printer status |
|
Get the print job status of the specified print job ID |
|
Get the print job history (List of print job status) for the specified number of jobs from the most recent. |
|
Get the present Star Configuration |
|
Get the default Star Configuration |
|
Set Star Configuration |
|
Close the printer |
|
Write data to the printer |
|
Read data from the printer |
Warning
Method (for iOS 12) is deleted in V2.12.0.
[Deleted] Method (for iOS 12) |
|
|---|---|
open(completion: @escaping (Error?) -> Void) |
Open the printer |
print(command: String, completion: @escaping (Error?) -> Void) |
|
print(raw: Data, completion: @escaping (Error?) -> Void) |
Print binary data |
print(command: String, starSpoolJobSettings: StarSpoolJobSettings, completion: @escaping (Int?, Error?) -> Void) |
Print using the printer’s spooler function |
getStatus(completion: @escaping (StarIO10.StarPrinterStatus?, Error?) -> Void) |
Get the printer status |
getSpoolJobStatus(jobId: Int, completion: @escaping (StarSpoolJobStatus?, Error?) -> Void) |
Get the print job status of the specified print job ID |
getSpoolJobStatusList(size: Int, completion: @escaping ([StarSpoolJobStatus]?, Error?) -> Void) |
Get the print job history (List of print job status) for the specified number of jobs from the most recent. |
getStarConfiguration(completion: @escaping (String?, Error?) -> Void) |
Get the present Star Configuration |
getDefaultStarConfiguration(completion: @escaping (String?, Error?) -> Void) |
Get the default Star Configuration |
setStarConfiguration(starConfiguration: String, completion: @escaping (Error?) -> Void) |
Set Star Configuration |
close(completion: @escaping () -> Void) |
Close the printer |

