File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
android/src/main/java/br/com/classapp/RNSensitiveInfo Expand file tree Collapse file tree 1 file changed +18
-0
lines changed 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