Skip to content

capacitor-bluetooth-printer 0.0.1

Install from the command line:
Learn more about npm packages
$ npm install @kduma-autoid/capacitor-bluetooth-printer@0.0.1
Install via package.json:
"@kduma-autoid/capacitor-bluetooth-printer": "0.0.1"

About this version

@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"

Details


Assets

  • capacitor-bluetooth-printer-0.0.1.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all