forked from robertolocal/cordova-plugin-fingerprint-aio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
134 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package de.niklasmerz.cordova.biometric; | ||
|
||
public enum PluginError { | ||
|
||
BIOMETRIC_UNKNOWN_ERROR(-100), | ||
BIOMETRIC_UNAVAILABLE(-101), | ||
BIOMETRIC_AUTHENTICATION_FAILED(-102, "Authentication failed"), | ||
BIOMETRIC_SDK_NOT_SUPPORTED(-103), | ||
BIOMETRIC_HARDWARE_NOT_SUPPORTED(-104), | ||
BIOMETRIC_PERMISSION_NOT_GRANTED(-105), | ||
BIOMETRIC_FINGERPRINT_NOT_ENROLLED(-106), | ||
BIOMETRIC_INTERNAL_PLUGIN_ERROR(-107), | ||
BIOMETRIC_FINGERPRINT_DISMISSED(-108), | ||
BIOMETRIC_PIN_OR_PATTERN_DISMISSED(-109), | ||
BIOMETRIC_SCREEN_GUARD_UNSECURED(-110, | ||
"Go to 'Settings -> Security -> Screenlock' to set up a lock screen"), | ||
BIOMETRIC_LOCKED_OUT(-111), | ||
BIOMETRIC_LOCKED_OUT_PERMANENT(-112); | ||
|
||
private int value; | ||
private String message; | ||
|
||
PluginError(int value) { | ||
this.value = value; | ||
this.message = this.name(); | ||
} | ||
|
||
PluginError(int value, String message) { | ||
this.value = value; | ||
this.message = message; | ||
} | ||
|
||
public int getValue() { | ||
return value; | ||
} | ||
|
||
public String getMessage() { | ||
return message; | ||
} | ||
} |