Capacitor Plugin for printing to epson usb printer
npm install capacitor-plugin-epson-usb-printer
npx cap sync
getPrinterList() => Promise<{ printerList: EpsonUSBPrinterInfo[]; }>
Returns: Promise<{ printerList: EpsonUSBPrinterInfo[]; }>
connectToPrinter(options: { productId: number; }) => Promise<{ connected: boolean; }>
Param | Type |
---|---|
options |
{ productId: number; } |
Returns: Promise<{ connected: boolean; }>
print(options: { printObject: string; }) => Promise<void>
Param | Type |
---|---|
options |
{ printObject: string; } |
Prop | Type |
---|---|
productId |
number |
productName |
string |
connected |
boolean |