6.0.1 • Published 7 months ago

capacitor-plugin-escpos-usb-printer v6.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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[]; }>


hasPermission(...)

hasPermission(options: { deviceId: number; }) => Promise<{ permission: boolean; }>
ParamType
options{ deviceId: number; }

Returns: Promise<{ permission: boolean; }>


retrieveSerial(...)

retrieveSerial(options: { deviceId: number; }) => Promise<{ serial: string; }>
ParamType
options{ deviceId: number; }

Returns: Promise<{ serial: string; }>


connectToPrinter(...)

connectToPrinter(options: { deviceId: number; vendorId: number; productId: number; }) => Promise<{ connected: boolean; }>
ParamType
options{ deviceId: number; vendorId: number; productId: number; }

Returns: Promise<{ connected: boolean; }>


printHexArray(...)

printHexArray(options: { content: string; }) => Promise<void>
ParamType
options{ content: string; }

print(...)

print(options: { printObject: string; lineFeed?: number; }) => Promise<void>
ParamType
options{ printObject: string; lineFeed?: number; }

Interfaces

EpsonUSBPrinterInfo

PropType
productIdnumber
vendorIdnumber
productNamestring
connectedboolean
deviceIdnumber
6.0.1

7 months ago

6.0.0

8 months ago

0.2.6

8 months ago

0.2.5

8 months ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.4

1 year ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago