withBiometric

fun withBiometric(biometricType: BiometricType, fragmentActivity: FragmentActivity?, biometricPromptConfig: BiometricPromptConfig?): AuthProvider

Specifies parameters for biometric authentication.

Parameters

biometricType

The type of biometric sensor. If biometricType is BiometricType.ANY, then the biometric user authentication will be required. If biometricType is BiometricType.NO, the biometric user authentication will not be required, and null can be passed as fragmentActivity

fragmentActivity

The fragment activity for invoke BiometricPrompt

biometricPromptConfig

The configuration of BiometricPrompt.PromptInfo