Added in Version 1.0.0

StarPrinter

プリンターを制御するクラス

コンストラクタ

StarPrinter(connectionSettings: StarConnectionSettings, context: Context)

オブジェクトの初期化

プロパティ

information

プリンターの情報

StarPrinterInformation

connectionSettings

プリンターとの接続設定

StarConnectionSettings

template

テンプレート

String

printerDelegate

プリンターのステータスイベント

PrinterDelegate

drawerDelegate

キャッシュドロアーのステータスイベント

DrawerDelegate

inputDeviceDelegate

入力機器のステータスイベント

InputDeviceDelegate

displayDelegate

カスタマーディスプレイのステータスイベント

DisplayDelegate

openTimeout

接続タイムアウト(msec)

Int

printTimeout

印刷タイムアウト(msec)

Int

getStatusTimeout

ステータス取得タイムアウト(msec)

Int

starConfigurationTimeout

Star Configuration設定・取得タイムアウト(msec)

Int

メソッド

openAsync()

プリンターと接続

printAsync(command: String)

プリンターに印刷を実行

printAsync(command: String, starSpoolJobSettings: StarSpoolJobSettings)

プリンターのスプーラー機能を利用して印刷を実行

printRawDataAsync(data: List<Byte>)

プリンターにバイナリデータの印刷を実行

getStatusAsync()

プリンターのステータスを取得

getSpoolJobStatusAsync(jobId: Int)

指定した印刷ジョブIDの印刷ジョブステータスを取得

getSpoolJobStatusListAsync(size: Int)

最新から指定された件数分のプリンターの印刷ジョブ履歴(印刷ジョブステータスのリスト)を取得

getStarConfigurationAsync(password: String? = null)

プリンターの現在のStar Configurationを取得

getDefaultStarConfigurationAsync()

プリンターのデフォルトのStar Congirutaionを取得

setStarConfigurationAsync(starConfiguration: String)

プリンターにStar Configurationの設定を実行

closeAsync()

プリンターと切断