File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
android/src/main/java/br/com/classapp/RNSensitiveInfo Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,12 @@ As noted by by [@Palisand](https://github.com/Palisand) in [this issue](https://
118
118
119
119
We unified our library's methods to bring more efficiency and simplify the usability for other developers. We hope that you enjoy it. :)
120
120
121
+ ` isHardwareDetected() ` : resolves to a boolean that indicates the detection of fingerprint hardware
122
+
123
+ ` hasEnrolledFingerprints() ` : resolves to a boolean that indicates the enrollment status of fingerprints on the device
124
+
125
+ ` isSensorAvailable ` : resolves to a boolean that indicates the overall availability of fingerprint sensor (a combination of the previous two methods)
126
+
121
127
` setItem(key, value, options) ` : You can insert data into shared preferences & keychain using this promise method.
122
128
123
129
` getItem(key, options) ` : This promise will get value from given key.
Original file line number Diff line number Diff line change @@ -87,6 +87,24 @@ private boolean hasSetupFingerprint() {
87
87
}
88
88
}
89
89
90
+ @ ReactMethod
91
+ public void isHardwareDetected (final Promise pm ) {
92
+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
93
+ pm .resolve (mFingerprintManager .isHardwareDetected ());
94
+ } else {
95
+ pm .resolve (false );
96
+ }
97
+ }
98
+
99
+ @ ReactMethod
100
+ public void hasEnrolledFingerprints (final Promise pm ) {
101
+ if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .M ) {
102
+ pm .resolve (mFingerprintManager .hasEnrolledFingerprints ());
103
+ } else {
104
+ pm .resolve (false );
105
+ }
106
+ }
107
+
90
108
@ ReactMethod
91
109
public void isSensorAvailable (final Promise promise ) {
92
110
promise .resolve (hasSetupFingerprint ());
You can’t perform that action at this time.
0 commit comments