0.0.2 • Published 10 months ago

capacitor-plugin-zkscanner v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

capacitor-plugin-zkscanner

This plugin allows for easy cordova integration with the zkteco ZK9500 fingerprint reader

Install

npm install capacitor-plugin-zkscanner
npx cap sync

API

openDevice()

openDevice() => Promise<OpenDeviceResponse>

Returns: Promise<OpenDeviceResponse>


closeDevice()

closeDevice() => Promise<CloseDeviceResponse>

Returns: Promise<CloseDeviceResponse>


addListener('CaptureEvent', ...)

addListener(eventName: 'CaptureEvent', listenerFunc: (data: { data: any; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'CaptureEvent'
listenerFunc(data: { data: any; }) => void

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


Interfaces

OpenDeviceResponse

PropType
successboolean
errorstring

CloseDeviceResponse

PropType
successboolean
errorstring

PluginListenerHandle

PropType
remove() => Promise<void>
0.0.2

10 months ago

0.0.1

10 months ago