0.0.6 • Published 2 years ago

lpapi-ionic-plugin v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

lpapi-plugin

LPAPI

Install

npm install lpapi-plugin
npx cap sync

API

getPairedPrinters()

getPairedPrinters() => Promise<any>

Returns: Promise<any>


connectPrinter(...)

connectPrinter(options: PrinterAddress) => Promise<any>
ParamType
optionsPrinterAddress

Returns: Promise<any>


disconnectPrinter()

disconnectPrinter() => Promise<any>

Returns: Promise<any>


printText(...)

printText(options: PrinterOptions) => Promise<any>
ParamType
optionsPrinterOptions

Returns: Promise<any>


printText1DBarcode(...)

printText1DBarcode(options: PrinterOptions) => Promise<any>
ParamType
optionsPrinterOptions

Returns: Promise<any>


drawText(...)

drawText(options: TextOptions) => Promise<any>
ParamType
optionsTextOptions

Returns: Promise<any>


drawText1DBarcode(...)

drawText1DBarcode(options: TextOptions) => Promise<any>
ParamType
optionsTextOptions

Returns: Promise<any>


getPrinterState()

getPrinterState() => Promise<any>

Returns: Promise<any>


drawCircle(...)

drawCircle(options: ShapeOptions) => Promise<any>
ParamType
optionsShapeOptions

Returns: Promise<any>


drawRect(...)

drawRect(options: ShapeOptions) => Promise<any>
ParamType
optionsShapeOptions

Returns: Promise<any>


drawLine(...)

drawLine(options: ShapeOptions) => Promise<any>
ParamType
optionsShapeOptions

Returns: Promise<any>


startJob(...)

startJob(option: LabelOptions) => Promise<any>
ParamType
optionLabelOptions

Returns: Promise<any>


abortJob()

abortJob() => Promise<any>

Returns: Promise<any>


commitJob()

commitJob() => Promise<any>

Returns: Promise<any>


Interfaces

PrinterAddress

PropType
namestring
addressstring

PrinterOptions

TextOptions

PropType
textstring
xnumber
ynumber
widthnumber
heightnumber
textHeightnumber

ShapeOptions

PropType
vnumber
v1number
v2number
v3number
v4number

LabelOptions

PropType
labelWidthnumber
labelHeightnumber
0.0.5

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago