capacitor-plugin-escpos-usb-printer
v6.0.0
Published
Capacitor Plugin for printing to epson usb printer
Downloads
179
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()
hasPermission(...)
retrieveSerial(...)
connectToPrinter(...)
printHexArray(...)
print(...)
- Interfaces
getPrinterList()
getPrinterList() => Promise<{ printerList: EpsonUSBPrinterInfo[]; }>
Returns: Promise<{ printerList: EpsonUSBPrinterInfo[]; }>
hasPermission(...)
hasPermission(options: { deviceId: number; }) => Promise<{ permission: boolean; }>
| Param | Type |
| ------------- | ---------------------------------- |
| options
| { deviceId: number; } |
Returns: Promise<{ permission: boolean; }>
retrieveSerial(...)
retrieveSerial(options: { deviceId: number; }) => Promise<{ serial: string; }>
| Param | Type |
| ------------- | ---------------------------------- |
| options
| { deviceId: number; } |
Returns: Promise<{ serial: string; }>
connectToPrinter(...)
connectToPrinter(options: { deviceId: number; vendorId: number; productId: number; }) => Promise<{ connected: boolean; }>
| Param | Type |
| ------------- | ----------------------------------------------------------------------- |
| options
| { deviceId: number; vendorId: number; productId: number; } |
Returns: Promise<{ connected: boolean; }>
printHexArray(...)
printHexArray(options: { content: string; }) => Promise<void>
| Param | Type |
| ------------- | --------------------------------- |
| options
| { content: string; } |
print(...)
print(options: { printObject: string; lineFeed?: number; }) => Promise<void>
| Param | Type |
| ------------- | -------------------------------------------------------- |
| options
| { printObject: string; lineFeed?: number; } |
Interfaces
EpsonUSBPrinterInfo
| Prop | Type |
| ----------------- | -------------------- |
| productId
| number |
| vendorId
| number |
| productName
| string |
| connected
| boolean |
| deviceId
| number |