cordova-plugin-android-fingerprint-auth
Advanced tools
Comparing version 1.4.5 to 1.5.0
@@ -0,1 +1,5 @@ | ||
# Version 1.50 | ||
### What's New | ||
* Added new `dismiss()` action | ||
# Version 1.4.5 | ||
@@ -2,0 +6,0 @@ ### What's New |
{ | ||
"name": "cordova-plugin-android-fingerprint-auth", | ||
"version": "1.4.5", | ||
"version": "1.5.0", | ||
"description": "Cordova plugin to use Android fingerprint authentication API", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -57,2 +57,3 @@ # Update to Version 1.4.0 | ||
* [delete(deleteConfg, successCallback, errorCallback)](#module_fingerprintauth.delete) | ||
* [dismiss(successCallback, errorCallback)](#module_fingerprintauth.dismiss) | ||
* [ERRORS](#module_fingerprintauth.errors) | ||
@@ -237,3 +238,23 @@ * [Config Object](#module_fingerprintauth.config) | ||
<a name="module_fingerprintauth.dismiss"></a> | ||
# FingerprintAuth.dismiss(successCallback, errorCallback) | ||
Used to dismiss a Fingerprint Authentication Dialog if one is being displayed | ||
**Example** | ||
```javascript | ||
FingerprintAuth.dismiss(successCallback, errorCallback); | ||
function successCallback(result) { | ||
console.log("Successfully dismissed FingerprintAuth dialog: " + JSON.stringify(result)); | ||
} | ||
function errorCallback(error) { | ||
console.log(error); | ||
} | ||
``` | ||
<a name="module_fingerprintauth.errors"></a> | ||
@@ -262,1 +283,2 @@ | ||
| SECURITY_EXCEPTION | String | "SECURITY_EXCEPTION" | | ||
| FRAGMENT_NOT_EXIST | String | "FRAGMENT_NOT_EXIST | |
@@ -60,2 +60,12 @@ function FingerprintAuth() { | ||
FingerprintAuth.prototype.dismiss = function (successCallback, errorCallback) { | ||
cordova.exec( | ||
successCallback, | ||
errorCallback, | ||
"FingerprintAuth", // Java Class | ||
"dismiss", // action | ||
[{}] | ||
); | ||
}; | ||
FingerprintAuth.prototype.isAvailable = function (successCallback, errorCallback) { | ||
@@ -62,0 +72,0 @@ cordova.exec( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
509862
251
282