Added in Version 1.0.0

InputDeviceDelegate

The protocol that defines the status event of an input device

Method

inputDeviceDidConnect(printer: StarPrinter)

Notify that the input device is connected

inputDeviceDidDisconnect(printer: StarPrinter)

Notify that the input device is disconnected

inputDevice(printer: StarPrinter, didReceive data: Data)

Notify that the data is received

inputDevice(printer: StarPrinter, communicationErrorDidOccur error: Error)

Notify that a communication error occurred