Skip to content

Commit

Permalink
Version 1.5.0
Browse files Browse the repository at this point in the history
* Added new dismiss() action
  • Loading branch information
Matthew Wheatley committed Oct 31, 2018
1 parent 8249dcc commit da5b95e
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ If you are not concerned with encrypting credentials and just want device authen
* [encrypt(encryptConfig, successCallback, errorCallback)](#module_fingerprintauth.encrypt)
* [decrypt(decryptConfig, successCallback, errorCallback)](#module_fingerprintauth.decrypt)
* [delete(deleteConfg, successCallback, errorCallback)](#module_fingerprintauth.delete)
* [dismiss(successCallback, errorCallback)](#module_fingerprintauth.dismiss)
* [ERRORS](#module_fingerprintauth.errors)
* [Config Object](#module_fingerprintauth.config)

Expand Down Expand Up @@ -233,6 +234,26 @@ function errorCallback(error) {
}
```

<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>

Expand All @@ -257,3 +278,4 @@ function errorCallback(error) {
| MISSING_PARAMETERS | String | "MISSING_PARAMETERS" |
| NO_SUCH_ALGORITHM_EXCEPTION | String | "NO_SUCH_ALGORITHM_EXCEPTION" |
| SECURITY_EXCEPTION | String | "SECURITY_EXCEPTION" |
| FRAGMENT_NOT_EXIST | String | "FRAGMENT_NOT_EXIST |
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 1.50
### What's New
* Added new `dismiss()` action

# Version 1.4.5
### What's New
* Added Korean translations
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-android-fingerprint-auth",
"version": "1.4.5",
"version": "1.5.0",
"description": "Cordova plugin to use Android fingerprint authentication API",
"cordova": {
"id": "cordova-plugin-android-fingerprint-auth",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-android-fingerprint-auth"
version="1.4.5">
version="1.5.0">
<name>FingerprintAuth</name>
<description>Cordova plugin to use Android fingerprint authentication API</description>
<license>Apache 2.0</license>
Expand Down

0 comments on commit da5b95e

Please sign in to comment.