4.0.0 • Published 1 year ago

capacitor-plugin-nitgen-fingerprint v4.0.0

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

capacitor-plugin-nitgen-fingerprint

Capacitor 6 plugin for Nitgen fingerprint readers (Hamster DX and Hamster III).

ANDROID ONLY

Install

npm install capacitor-plugin-nitgen-fingerprint
npx cap sync

Update your app AndroidManifest.xml, into activity tag:

<intent-filter>
    <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
<meta-data
    android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
    android:resource="@xml/device_filter_nitgen" />

API

init(...)

init(options: InitOptions & CaptureOptions) => any

Init the plugin with options

ParamType
optionsInitOptions & CaptureOptions

Returns: any

Since: 0.0.1


connect()

connect() => any

Connect to fingerprint device

Returns: any

Since: 0.0.1


disconnect()

disconnect() => any

Disconnect from fingerprint device

Returns: any

Since: 0.0.1


capture(...)

capture(options?: CaptureOptions | undefined) => any

Capture a fingerprint

ParamType
optionsCaptureOptions

Returns: any

Since: 0.0.1


match(...)

match(options: MatchOptions & CaptureOptions) => any

Capture a fingerprint and match with a given text FIR

ParamType
optionsMatchOptions & CaptureOptions

Returns: any

Since: 0.0.1


addListener('onConnected', ...)

addListener(eventName: 'onConnected', listenerFunc: OnConnectedListener) => any

Listen for connected event

ParamType
eventName'onConnected'
listenerFuncOnConnectedListener

Returns: any

Since: 0.0.1


addListener('onDisconnected', ...)

addListener(eventName: 'onDisconnected', listenerFunc: () => void) => any

Listen for disconnected event

ParamType
eventName'onDisconnected'
listenerFunc() => void

Returns: any

Since: 0.0.1


Interfaces

InitOptions

PropTypeDescriptionDefaultSince
serialstringSerial code0.0.1
securitySecurityLevelSecurity levelNORMAL0.0.1

CaptureOptions

PropTypeDescriptionDefaultSince
timeoutnumberCapture timeout in milliseconds100000.0.1
imageFormatImageFormatFingerprint image formatPNG0.0.1
imageQualitynumberFingerprint image quality (0-100) Only applied for JPEG500.0.1

CaptureResult

PropTypeDescriptionSince
textFIRstringCaptured text FIR0.0.1
imagestringbase64 encoded fingerprint image0.0.1

MatchOptions

PropTypeDescriptionSince
textFIRstringA stored text FIR to match with captured fingerprint0.0.1

MatchResult

PropTypeDescriptionSince
isMatchbooleanIf captured fingerprint matched text FIR0.0.1
textFIRstringCaptured text FIR0.0.1
imagestringbase64 encoded fingerprint image0.0.1

OnConnectedListenerEvent

PropTypeDescriptionSince
openedDeviceIDnumberDevice ID0.0.1

PluginListenerHandle

PropType
remove() => any

Type Aliases

ImageFormat

'PNG' | 'JPEG'

OnConnectedListener

(event: OnConnectedListenerEvent): void

Enums

SecurityLevel

MembersValue
LOWEST1
LOWER2
LOW3
BELOW_NORMAL4
NORMAL5
ABOVE_NORMAL6
HIGH7
HIGHER8
HIGHEST9
4.0.0

1 year ago

3.0.0

2 years ago

2.0.1

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

2.0.0

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago