Skip to content

Guigass/lpapi-ionic-plugin

Repository files navigation

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>


getPrinterState()

getPrinterState() => Promise<any>

Returns: Promise<any>


Interfaces

PrinterAddress

Prop Type
name string
address string

PrinterOptions

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

About

LPAPI - Plugin de Ionic para comunicar com impressora importadas do aliexpress InniFun

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published