Skip to content

PrinterModelSpec

Information about your printer.

Overview

Use this class to get static information about your printer.

Instance methods

PrinterModelSpec

Instantiate this class using a PrinterModel which you want information about.

Declaration

PrinterModelSpec(val printerModel: PrinterModel);

Parameters

Name Type Description
printerModel PrinterModel Printer model which you want to know

Properties

Xdpi

The resolution of the printer in the scanning direction (x-direction) in dots per inch.

Declaration

val Xdpi: Double

Ydpi

The resolution of the printer in the paper feed direction (y-direction) in dots per inch.

Declaration

val Ydpi: Double

modelCode

The model code of the printer.

Declaration

val modelCode: Int

seriesCode

The series code of the printer.

Declaration

val seriesCode: Int

supportedQLLabels

An array of supported QL label sizes. Returns an empty array if QL labels are not supported.

Declaration

val supportedQLLabels: Array<QLPrintSettings.LabelSize>

See QLPrintSettings.LabelSize.

supportedPTLabels

An array of supported PT label sizes. Returns an empty array if PT labels are not supported.

Declaration

val supportedPTLabels: Array<PTPrintSettings.LabelSize>

See PTPrintSettings.LabelSize.