capacitor-plugin-bluetooth-printer
v0.0.3
Published
This is a capacitor plugin for the bluetooth printer
Downloads
9
Readme
capacitor-plugin-bluetooth-printer
This is a capacitor plugin for the bluetooth printer
Install
npm install capacitor-plugin-bluetooth-printer
npx cap sync
API
echo(...)
discoverPrinters()
connectPrinter(...)
disconnectPrinter()
printString(...)
printBarcode(...)
printCommand(...)
openCashRegister()
getIPAddress()
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
discoverPrinters()
discoverPrinters() => Promise<{ results: any[]; }>
Returns: Promise<{ results: any[]; }>
connectPrinter(...)
connectPrinter(options: { address: string; }) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | --------------------------------- |
| options
| { address: string; } |
Returns: Promise<{ results: boolean; }>
disconnectPrinter()
disconnectPrinter() => Promise<{ results: boolean; }>
Returns: Promise<{ results: boolean; }>
printString(...)
printString(options: { contents: string; is_bold: boolean; is_underline: boolean; }) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | --------------------------------------------------------------------------- |
| options
| { contents: string; is_bold: boolean; is_underline: boolean; } |
Returns: Promise<{ results: boolean; }>
printBarcode(...)
printBarcode(options: { barcode: string; width: number; height: number; }) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | ---------------------------------------------------------------- |
| options
| { barcode: string; width: number; height: number; } |
Returns: Promise<{ results: boolean; }>
printCommand(...)
printCommand(options: { command: string; }) => Promise<{ results: boolean; }>
| Param | Type |
| ------------- | --------------------------------- |
| options
| { command: string; } |
Returns: Promise<{ results: boolean; }>
openCashRegister()
openCashRegister() => Promise<{ results: boolean; }>
Returns: Promise<{ results: boolean; }>
getIPAddress()
getIPAddress() => Promise<{ result: string; }>
Returns: Promise<{ result: string; }>