capacitor-plugin-zkscanner
v0.0.2
Published
This plugin allows for easy cordova integration with the zkteco ZK9500 fingerprint reader
Readme
capacitor-plugin-zkscanner
This plugin allows for easy cordova integration with the zkteco ZK9500 fingerprint reader
Install
npm install capacitor-plugin-zkscanner
npx cap syncAPI
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| Param | Type |
| ------------------ | ---------------------------------------------- |
| eventName | 'CaptureEvent' |
| listenerFunc | (data: { data: any; }) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Interfaces
OpenDeviceResponse
| Prop | Type |
| ------------- | -------------------- |
| success | boolean |
| error | string |
CloseDeviceResponse
| Prop | Type |
| ------------- | -------------------- |
| success | boolean |
| error | string |
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
