0.0.6 • Published 2 years ago
lpapi-ionic-plugin v0.0.6
lpapi-plugin
LPAPI
Install
npm install lpapi-plugin
npx cap sync
API
getPairedPrinters()
connectPrinter(...)
disconnectPrinter()
printText(...)
printText1DBarcode(...)
drawText(...)
drawText1DBarcode(...)
getPrinterState()
drawCircle(...)
drawRect(...)
drawLine(...)
startJob(...)
abortJob()
commitJob()
- Interfaces
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 |