Capacitor plugin for Pozo Retail thermal printer integration (USB / ESC POS)
Go to file
unknown 26d310b278 first commit 2026-03-18 09:43:44 +05:30
android first commit 2026-03-18 09:43:44 +05:30
ios first commit 2026-03-18 09:43:44 +05:30
src first commit 2026-03-18 09:43:44 +05:30
.eslintignore first commit 2026-03-18 09:43:44 +05:30
.gitignore first commit 2026-03-18 09:43:44 +05:30
.prettierignore first commit 2026-03-18 09:43:44 +05:30
CONTRIBUTING.md first commit 2026-03-18 09:43:44 +05:30
CapacitorPozoPrinter.podspec first commit 2026-03-18 09:43:44 +05:30
Package.swift first commit 2026-03-18 09:43:44 +05:30
README.md first commit 2026-03-18 09:43:44 +05:30
package-lock.json first commit 2026-03-18 09:43:44 +05:30
package.json first commit 2026-03-18 09:43:44 +05:30
rollup.config.mjs first commit 2026-03-18 09:43:44 +05:30
tsconfig.json first commit 2026-03-18 09:43:44 +05:30

README.md

capacitor-pozo-printer

Capacitor plugin for Pozo Retail thermal printer integration (USB / ESC POS)

Install

To use npm

npm install capacitor-pozo-printer

To use yarn

yarn add capacitor-pozo-printer

Sync native files

npx cap sync

API

requestPermissions()

requestPermissions() => Promise<PermissionResult>

Returns: Promise<PermissionResult>


scanBluetooth()

scanBluetooth() => Promise<{ devices: PrinterDevice[]; }>

Scan paired Bluetooth devices

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


scanUsb()

scanUsb() => Promise<{ devices: PrinterDevice[]; }>

Scan connected USB devices

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


printBluetooth(...)

printBluetooth(options: BluetoothPrintOptions) => Promise<{ success: boolean; }>

Print via Bluetooth SPP

Param Type
options BluetoothPrintOptions

Returns: Promise<{ success: boolean; }>


printNetwork(...)

printNetwork(options: NetworkPrintOptions) => Promise<{ success: boolean; }>

Print via Network/LAN/WiFi (TCP port 9100)

Param Type
options NetworkPrintOptions

Returns: Promise<{ success: boolean; }>


printUsb(...)

printUsb(options: UsbPrintOptions) => Promise<{ success: boolean; }>

Print via USB OTG

Param Type
options UsbPrintOptions

Returns: Promise<{ success: boolean; }>


Interfaces

PermissionResult

Prop Type
bluetooth 'granted' | 'denied' | 'prompt'
network 'granted' | 'denied' | 'prompt'

PrinterDevice

Prop Type
name string
address string

BluetoothPrintOptions

Prop Type
address string
data number[]

NetworkPrintOptions

Prop Type
host string
port number
data number[]

UsbPrintOptions

Prop Type
data number[]
deviceId string