BiometricBindingHandler

internal class BiometricBindingHandler(titleValue: String, subtitleValue: String, descriptionValue: String, fragmentActivity: FragmentActivity = InitProvider.getCurrentActivityAsFragmentActivity(), deviceBindAuthenticationType: DeviceBindingAuthenticationType, var biometricListener: BiometricPrompt.AuthenticationCallback? = null, var biometricAuth: BiometricAuth? = null) : BiometricHandler

Helper class for managing Biometric configuration.

Parameters

titleValue

Title displayed in biometric prompt

subtitleValue

Subtitle displayed in biometric prompt

descriptionValue

Description displayed in biometric prompt

fragmentActivity

Activity that uses biometric to be displayed

biometricListener

callback for biometric success or failure

biometricAuth

Return the BiometricAuth instance

Constructors

Link copied to clipboard
constructor(titleValue: String, subtitleValue: String, descriptionValue: String, fragmentActivity: FragmentActivity = InitProvider.getCurrentActivityAsFragmentActivity(), deviceBindAuthenticationType: DeviceBindingAuthenticationType, biometricListener: BiometricPrompt.AuthenticationCallback? = null, biometricAuth: BiometricAuth? = null)

Properties

Link copied to clipboard
private var biometricAuth: BiometricAuth?

Functions

Link copied to clipboard
open override fun authenticate(authenticationCallback: BiometricPrompt.AuthenticationCallback, cryptoObject: BiometricPrompt.CryptoObject?)

display biometric prompt for Biometric and device credential

Link copied to clipboard
open override fun isSupported(strongAuthenticators: Int, weakAuthenticators: Int): Boolean

check support for Biometric and device credential

Link copied to clipboard
open override fun isSupportedBiometricStrong(): Boolean