txd-sewoo-printer-capacitor
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@txd/printer-capacitor

Capacitor Plugin to use printers (TxD)

Install

npm install txd-printer-capacitor
npx cap sync

API

connect(...)

connect(options: { macAddress: string; initialCmd: string; }) => Promise<{ completed: boolean; }>
Param Type
options { macAddress: string; initialCmd: string; }

Returns: Promise<{ completed: boolean; }>


disconnect()

disconnect() => Promise<{ completed: boolean; }>

Returns: Promise<{ completed: boolean; }>


isConnected()

isConnected() => Promise<{ connected: boolean; }>

Returns: Promise<{ connected: boolean; }>


print(...)

print(options: { content: string; }) => Promise<{ completed: boolean; }>
Param Type
options { content: string; }

Returns: Promise<{ completed: boolean; }>


onConnectionChange(...)

onConnectionChange(callback: () => void) => void
Param Type
callback () => void

getStatus()

getStatus() => Promise<{ printerStatus: string; }>

Returns: Promise<{ printerStatus: string; }>


Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.63latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.63
0.0.52
0.0.40
0.0.30
0.0.21
0.0.10

Package Sidebar

Install

npm i txd-sewoo-printer-capacitor

Weekly Downloads

5

Version

0.0.6

License

MIT

Unpacked Size

8.29 MB

Total Files

44

Last publish

Collaborators

  • lirrumscode