Package org.robolectric.shadows
Class ShadowBiometricManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowBiometricManager
-
@Implements(className="android.hardware.biometrics.BiometricManager", minSdk=29, isInAndroidSdk=false) public class ShadowBiometricManager extends Object
Provides testing APIs forBiometricManager
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanbiometricServiceConnected
-
Constructor Summary
Constructors Constructor Description ShadowBiometricManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcanAuthenticate()protected intcanAuthenticate(int userId, int authenticators)voidsetCanAuthenticate(boolean flag)Sets the valuetrueto allowcanAuthenticate()returnBIOMETRIC_SUCCESSIf sets the value tofalse, result will depend onBiometricManager#hasBiometrics(Context context)
-
-
-
Method Detail
-
canAuthenticate
@Implementation protected int canAuthenticate()
-
setCanAuthenticate
public void setCanAuthenticate(boolean flag)
Sets the valuetrueto allowcanAuthenticate()returnBIOMETRIC_SUCCESSIf sets the value tofalse, result will depend onBiometricManager#hasBiometrics(Context context)- Parameters:
flag- to set can authenticate or not
-
canAuthenticate
@Implementation(minSdk=30) protected int canAuthenticate(int userId, int authenticators)
-
-