Added in Version 1.0.0

StarPrinter

The class that controls the printer

Constructor

StarPrinter(connectionSettings: StarConnectionSettings)

Initialize object

Property

information

Printer information

connectionSettings

Printer connection settings

printerDelegate

Status event for the printer

drawerDelegate

Status event for the cash drawer

inputDeviceDelegate

Status event for an input device

displayDelegate

Status event for the customer display

openTimeout

Open timeout (msec)

printTimeout

Print timeout (msec)

getStatusTimeout

Get status timeout (msec)

Method

open()

Open the printer

print(command: string)

Print (recommended)

printRawData(data: Array<number>)

Print

getStatus()

Get the printer status

close()

Close the printer

dispose()

Dispose the object