2.0.0 • Published 6 months ago

capacitor-biometric-lock v2.0.0

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

capacitor-biometric-lock

Lock and unlock an app with biometrics

Install

npm install capacitor-biometric-lock
npx cap sync

API

configure(...)

configure(options?: BiometricLockConfiguration | undefined) => Promise<void>

Set plugin configuration

ParamType
optionsBiometricLockConfiguration

Since: 1.0.0


getConfiguration()

getConfiguration() => Promise<BiometricLockConfiguration>

Get plugin configuration

Returns: Promise<BiometricLockConfiguration>

Since: 1.0.0


getBiometricMethod()

getBiometricMethod() => Promise<BiometricMethodResult>

Get primary biometric method

Returns: Promise<BiometricMethodResult>

Since: 1.0.0


Interfaces

BiometricLockConfiguration

Persisted configuration of the plugin

PropTypeDescription
enabledboolean
timeoutInSecondsnumber
appNamestring
retryButtonColorstringHex color code e.g. "00ffee"

BiometricMethodResult

PropType
biometricMethodBiometricMethod

Enums

BiometricMethod

MembersValueDescription
none0No biometry is available
touchId1iOS Touch ID is available
faceId2iOS Face ID is available
fingerprintAuthentication3Android fingerprint authentication is available
faceAuthentication4Android face authentication is available
irisAuthentication5Android iris authentication is available
2.0.0

6 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.0

1 year ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago