Added in Version 1.0.0

DisplayDelegate

The protocol that defines the status event for the customer display

Method

displayDidConnect(printer: StarPrinter)

Notify that the customer display is connected

displayDidDisconnect(printer: StarPrinter)

Notify that the customer display is disconnected

display(printer: StarPrinter, communicationErrorDidOccur error: Error)

Notify that a communication error occurred

Note

This Delegate is Class-Only Protocol. It cannot apply to Swift struct (e.g. SwiftUI) and Enum. If necessary, create another class and apply it to the class.