capacitor-plugin-epson-usb-printer
v0.0.15
Published
Capacitor Plugin for printing to epson usb printer
Downloads
171
Readme
capacitor-plugin-epson-usb-printer
Capacitor Plugin for printing to epson usb printer
Install
npm install capacitor-plugin-epson-usb-printer
npx cap sync
API
getPrinterList()
getPrinterList() => Promise<{ printerList: EpsonUSBPrinterInfo[]; }>
Returns: Promise<{ printerList: EpsonUSBPrinterInfo[]; }>
connectToPrinter(...)
connectToPrinter(options: { productId: number; }) => Promise<{ connected: boolean; }>
| Param | Type |
| ------------- | ----------------------------------- |
| options
| { productId: number; } |
Returns: Promise<{ connected: boolean; }>
print(...)
print(options: { printObject: string; lineFeed?: number; }) => Promise<void>
| Param | Type |
| ------------- | -------------------------------------------------------- |
| options
| { printObject: string; lineFeed?: number; } |
Interfaces
EpsonUSBPrinterInfo
| Prop | Type |
| ----------------- | -------------------- |
| productId
| number |
| productName
| string |
| connected
| boolean |