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

template

Template

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)

starConfigurationTimeout

Set/Get Star Configuration timeout(msec)

Method

open()

Open the printer

print(command: string)

Print

print(command: string, starSpoolJobSettings: StarSpoolJobSettings)

Print using the printer’s spooler function

printRawData(data: Array<number>)

Print binary data

getStatus()

Get the printer status

getSpoolJobStatus(jobId: number)

Get the print job status of the specified print job ID

getSpoolJobStatusList(size: number)

Get the print job history (List of print job status) for the specified number of jobs from the most recent.

getStarConfigurationAsync(password: string? = null)

Get the present Star Configuration

getDefaultStarConfiguration()

Get the default Star Configuration

setStarConfigurationAsync(starConfiguration: string)

Set Star Configuration

close()

Close the printer

dispose()

Dispose the object