lpapi-ionic-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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>
Param Type
options PrinterAddress

Returns: Promise<any>


disconnectPrinter()

disconnectPrinter() => Promise<any>

Returns: Promise<any>


printText(...)

printText(options: PrinterOptions) => Promise<any>
Param Type
options PrinterOptions

Returns: Promise<any>


printText1DBarcode(...)

printText1DBarcode(options: PrinterOptions) => Promise<any>
Param Type
options PrinterOptions

Returns: Promise<any>


drawText(...)

drawText(options: TextOptions) => Promise<any>
Param Type
options TextOptions

Returns: Promise<any>


drawText1DBarcode(...)

drawText1DBarcode(options: TextOptions) => Promise<any>
Param Type
options TextOptions

Returns: Promise<any>


getPrinterState()

getPrinterState() => Promise<any>

Returns: Promise<any>


drawCircle(...)

drawCircle(options: ShapeOptions) => Promise<any>
Param Type
options ShapeOptions

Returns: Promise<any>


drawRect(...)

drawRect(options: ShapeOptions) => Promise<any>
Param Type
options ShapeOptions

Returns: Promise<any>


drawLine(...)

drawLine(options: ShapeOptions) => Promise<any>
Param Type
options ShapeOptions

Returns: Promise<any>


startJob(...)

startJob(option: LabelOptions) => Promise<any>
Param Type
option LabelOptions

Returns: Promise<any>


abortJob()

abortJob() => Promise<any>

Returns: Promise<any>


commitJob()

commitJob() => Promise<any>

Returns: Promise<any>


Interfaces

PrinterAddress

Prop Type
name string
address string

PrinterOptions

TextOptions

Prop Type
text string
x number
y number
width number
height number
textHeight number

ShapeOptions

Prop Type
v number
v1 number
v2 number
v3 number
v4 number

LabelOptions

Prop Type
labelWidth number
labelHeight number

Readme

Keywords

Package Sidebar

Install

npm i lpapi-ionic-plugin

Weekly Downloads

2

Version

0.0.6

License

MIT

Unpacked Size

361 kB

Total Files

29

Last publish

Collaborators

  • guigass