0.0.3 • Published 1 year ago

capacitor-plugin-bluetooth-printer v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


discoverPrinters()

discoverPrinters() => Promise<{ results: any[]; }>

Returns: Promise<{ results: any[]; }>


connectPrinter(...)

connectPrinter(options: { address: string; }) => Promise<{ results: boolean; }>
ParamType
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; }>
ParamType
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; }>
ParamType
options{ barcode: string; width: number; height: number; }

Returns: Promise<{ results: boolean; }>


printCommand(...)

printCommand(options: { command: string; }) => Promise<{ results: boolean; }>
ParamType
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; }>


0.0.3

1 year ago

0.0.2

1 year ago