capacitor-plugin-bluetooth-printer
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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


Readme

Keywords

Package Sidebar

Install

npm i capacitor-plugin-bluetooth-printer

Weekly Downloads

13

Version

0.0.3

License

MIT

Unpacked Size

699 kB

Total Files

35

Last publish

Collaborators

  • itdevstar