@Implements(className="android.hardware.biometrics.BiometricManager", minSdk=29, isInAndroidSdk=false) public class ShadowBiometricManager extends Object
BiometricManager| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
biometricServiceConnected |
| Constructor | Description |
|---|---|
ShadowBiometricManager() |
| Modifier and Type | Method | Description |
|---|---|---|
protected int |
canAuthenticate() |
|
void |
setCanAuthenticate(boolean flag) |
Sets the value
true to allow canAuthenticate() return BIOMETRIC_SUCCESS If sets the value to false, result will depend on BiometricManager.hasBiometrics(Context context) |
@Implementation(maxSdk=29) protected int canAuthenticate()
public void setCanAuthenticate(boolean flag)
true to allow canAuthenticate() return BIOMETRIC_SUCCESS If sets the value to false, result will depend on BiometricManager.hasBiometrics(Context context)flag - to set can authenticate or not