0.0.6 • Published 2 years ago

txd-sewoo-printer-capacitor v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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; }>
ParamType
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; }>
ParamType
options{ content: string; }

Returns: Promise<{ completed: boolean; }>


onConnectionChange(...)

onConnectionChange(callback: () => void) => void
ParamType
callback() => void

getStatus()

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

Returns: Promise<{ printerStatus: string; }>


0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.1.1

2 years ago