1.0.0 • Published 1 year ago

@dolosplus/zebra-capacitor v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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 sync

Version History

  1. Release 0.0.9 (Supply Chains)
  2. Release 0.0.10 (LMT R2)
  3. Release x (CAP4)

API

connectPrinter(...)

connectPrinter(options: { config: string; }) => Promise<any>
ParamType
options{ config: string; }

Returns: Promise<any>


printText(...)

printText(options: { text: string; }) => Promise<any>
ParamType
options{ text: string; }

Returns: Promise<any>


printPDF(...)

printPDF(options: { base64: string; size?: { x: number; y: number; width: number; height: number; }; }) => Promise<any>
ParamType
options{ base64: string; size?: { x: number; y: number; width: number; height: number; }; }

Returns: Promise<any>


addListener('printerStatusChange', ...)

addListener(eventName: 'printerStatusChange', listenerFunc: StateChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'printerStatusChange'
listenerFuncStateChangeListener

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

ConnectState

PropTypeDescriptionSince
isActivebooleanWhether the app is active or not.1.0.0

Type Aliases

StateChangeListener

(state: ConnectState): void

1.0.0

1 year ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.1

3 years ago