Supported Model:
TSP650II TSP650IISK TSP700II TSP800II TSP100IIIW TSP100IIILAN TSP100IIIBI TSP100IIIU TSP100IV mPOP MCP20 MCP20B MCP21LB MCP30 MCP31L MCP31LB MCP31C MCP31CB SM-S210i(StarPRNT) SM-S210i(ESC/POS) SM-S230i(StarPRNT) SM-S230i(ESC/POS) SM-T300i(StarPRNT) SM-T300i(ESC/POS) SM-T400i(StarPRNT) SM-T400i(ESC/POS) SM-L200 SM-L300 SP700
print(command: String) async
Print (recommended)
print(command: String) async throws
Parameter |
||
---|---|---|
command |
StarXpand Command from StarXpandCommandBuilder.getCommands() |
Error
Code
Description
invalidOperation(message: String, errorCode: StarIO10ErrorCode)
Device is not opened
communication(message: String, errorCode: StarIO10ErrorCode)
Communication failed
unprintable(message: String, errorCode: StarIO10ErrorCode, status: StarPrinterStatus?)
The device status is invalid.
unprintable(message: String, errorCode: StarIO10ErrorCode, status: StarPrinterStatus?)
An error has occurred in the device.
unprintable(message: String, errorCode: StarIO10ErrorCode, status: StarPrinterStatus?)
The printer is holding paper.
unprintable(message: String, errorCode: StarIO10ErrorCode, status: StarPrinterStatus?)
Printing did not finish within the time that was specified in printTimeout.
The response from the device is invalid.
Unknown
Warning
This method can only be executed on devices running iOS 13 or later; for devices running iOS 12, use print(command: String, completion: @escaping (Error?) -> Void).