@kduma-autoid/capacitor-bluetooth-printer
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

@kduma-autoid/capacitor-bluetooth-printer

Allows printing on SPP BT printers

Install

npm install @kduma-autoid/capacitor-bluetooth-printer
npx cap sync

API

list()

list() => Promise<{ devices: BluetoothDevice[]; }>

Returns: Promise<{ devices: BluetoothDevice[]; }>


connect(...)

connect(options: { address: string; }) => Promise<void>
Param Type
options { address: string; }

print(...)

print(options: { data: string; }) => Promise<void>
Param Type
options { data: string; }

disconnect()

disconnect() => Promise<void>

connectAndPrint(...)

connectAndPrint(options: { address: string; data: string; }) => Promise<void>
Param Type
options { address: string; data: string; }

Type Aliases

BluetoothDevice

{ name: string, address: string, type: BluetoothDeviceType }

Enums

BluetoothDeviceType

Members Value
Unknown "unknown"
Classic "classic"
Le "le"
Dual "dual"

Readme

Keywords

Package Sidebar

Install

npm i @kduma-autoid/capacitor-bluetooth-printer

Weekly Downloads

156

Version

0.2.1

License

MIT

Unpacked Size

28.7 kB

Total Files

21

Last publish

Collaborators

  • kduma