Socket
Book a DemoInstallSign in
Socket

capacitor-plugin-nitgen-fingerprint

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-plugin-nitgen-fingerprint

Capacitor plugin for Nitgen fingerprint devices.

latest
Source
npmnpm
Version
5.0.0
Version published
Maintainers
1
Created
Source

capacitor-plugin-nitgen-fingerprint

Capacitor 7 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(...)
  • connect()
  • disconnect()
  • capture(...)
  • match(...)
  • addListener('onConnected', ...)
  • addListener('onDisconnected', ...)
  • Interfaces
  • Type Aliases
  • Enums

init(...)

init(options: InitOptions & CaptureOptions) => Promise<void>

Init the plugin with options

ParamType
optionsInitOptions & CaptureOptions

Since: 0.0.1

connect()

connect() => Promise<void>

Connect to fingerprint device

Since: 0.0.1

disconnect()

disconnect() => Promise<void>

Disconnect from fingerprint device

Since: 0.0.1

capture(...)

capture(options?: CaptureOptions | undefined) => Promise<CaptureResult>

Capture a fingerprint

ParamType
optionsCaptureOptions

Returns: Promise<CaptureResult>

Since: 0.0.1

match(...)

match(options: MatchOptions & CaptureOptions) => Promise<MatchResult>

Capture a fingerprint and match with a given text FIR

ParamType
optionsMatchOptions & CaptureOptions

Returns: Promise<MatchResult>

Since: 0.0.1

addListener('onConnected', ...)

addListener(eventName: 'onConnected', listenerFunc: OnConnectedListener) => Promise<PluginListenerHandle>

Listen for connected event

ParamType
eventName'onConnected'
listenerFuncOnConnectedListener

Returns: Promise<PluginListenerHandle>

Since: 0.0.1

addListener('onDisconnected', ...)

addListener(eventName: 'onDisconnected', listenerFunc: () => void) => Promise<PluginListenerHandle>

Listen for disconnected event

ParamType
eventName'onDisconnected'
listenerFunc() => void

Returns: Promise<PluginListenerHandle>

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

MatchResult

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

MatchOptions

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

PluginListenerHandle

PropType
remove() => Promise<void>

OnConnectedListenerEvent

PropTypeDescriptionSince
openedDeviceIDnumberDevice ID0.0.1

Type Aliases

ImageFormat

'PNG' | 'JPEG'

OnConnectedListener

(event: OnConnectedListenerEvent): void

Enums

SecurityLevel

MembersValue
LOWEST1
LOWER2
LOW3
BELOW_NORMAL4
NORMAL5
ABOVE_NORMAL6
HIGH7
HIGHER8
HIGHEST9

Keywords

capacitor

FAQs

Package last updated on 01 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts