@bkarv/zebra-capacitor
v1.0.1
Published
Zebra printer capacitor plugin library with ZSDK API
Readme
zebra-capacitor
Zebra printer capacitor plugin library for iOS. Ionic Capacitor v3 wrapper with ZSDK_API. Support base64 PDF and regular Text printing.
Only tested with ZQ520 and ZQ521. Should work for all Zebra Bluetooth printers. Android is not yet supported at the moment unless someone wants to contribute to this repo. Contact me at DOLOS+
Install
npm install @dolosplus/zebra-capacitor
npx cap syncAPI
connectPrinter(...)
connectPrinter(options: { config: string; }) => any| Param | Type |
| ------------- | -------------------------------- |
| options | { config: string; } |
Returns: any
printText(...)
printText(options: { text: string; }) => any| Param | Type |
| ------------- | ------------------------------ |
| options | { text: string; } |
Returns: any
printPDF(...)
printPDF(options: { base64: string; }) => any| Param | Type |
| ------------- | -------------------------------- |
| options | { base64: string; } |
Returns: any
addListener(...)
addListener(eventName: 'printerStatusChange', listenerFunc: StateChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle| Param | Type |
| ------------------ | --------------------------------------------- |
| eventName | "printerStatusChange" |
| listenerFunc | (state: ConnectState) => void |
Returns: any
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ------------------------- |
| remove | () => any |
