Supported Model:
TSP100IV TSP100IV SK TSP100IIIW TSP100IIILAN TSP100IIIBI TSP100IIIU MCP31L MCP31LB MCP31CI MCP31CBI MCP31C MCP31CB MCP30 MCP21LB MCP20B MCP20 MCL32CI MCL32CBI MCL21CI MCL21CWBI MCL21CI LBL MCL21CWBI LBL POP10 POP10CI POP10CBI TSP650II TSP650IISK TSP700II TSP800II BSC10II SP700 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
print(command: String) async
プリンターに印刷を実行
print(command: String) async throws
パラメータ |
型 |
|
---|---|---|
command |
StarXpandCommandBuilder.getCommands()で取得したStarXpand Command or テンプレート印刷の場合はJSONフォーマットのフィールドデータ |
エラー
コード
説明
invalidOperation(message: String, errorCode: StarIO10ErrorCode)
未接続の状態で実行
communication(message: String, errorCode: StarIO10ErrorCode)
通信に失敗
unprintable(message: String, errorCode: StarIO10ErrorCode, status: StarPrinterStatus?)
デバイスの状態が不正
unprintable(message: String, errorCode: StarIO10ErrorCode, status: StarPrinterStatus?)
デバイスにエラーが発生
unprintable(message: String, errorCode: StarIO10ErrorCode, status: StarPrinterStatus?)
プリンターが用紙保持状態
unprintable(message: String, errorCode: StarIO10ErrorCode, status: StarPrinterStatus?)
printTimeoutで指定した時間内に印刷が完了しなかった
指定されたテンプレートが仕様に従っていない
デバイスからの応答が不正
illegalDeviceState(message: String, errorCode: StarIO10ErrorCode)
ホストデバイスのネットワーク機能使用不可
illegalDeviceState(message: String, errorCode: StarIO10ErrorCode)
ホストデバイスのBluetooth機能使用不可
未知
注釈
以下の例外がスローされた場合、印刷が実行された可能性がありますが、その印刷内容は保証されません。