BiometricAuth

class BiometricAuth @JvmOverloads constructor(val title: String?, val subtitle: String?, val allowDeviceCredentials: Boolean, val activity: FragmentActivity, var biometricAuthListener: BiometricPrompt.AuthenticationCallback? = null, val description: String? = null)

Helper class for managing Biometric Authentication Process.

Constructors

Link copied to clipboard
constructor(title: String?, subtitle: String?, allowDeviceCredentials: Boolean, activity: FragmentActivity, biometricAuthListener: BiometricPrompt.AuthenticationCallback? = null, description: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Return the activity of the client application that will host the prompt.

Link copied to clipboard
Link copied to clipboard

Return the Biometric Authentication listener used to return authentication result.

Link copied to clipboard
Link copied to clipboard
private val description: String? = null

The description to be displayed on the prompt.

Link copied to clipboard
private var fingerprintManager: FingerprintManager?
Link copied to clipboard

Return the mechanism used to lock and unlock the device.

Link copied to clipboard
Link copied to clipboard

The subtitle to be displayed on the prompt.

Link copied to clipboard

The title to be displayed on the prompt.

Functions

Link copied to clipboard
fun authenticate(cryptoObject: BiometricPrompt.CryptoObject? = null)
Link copied to clipboard
private fun getAuthenticators(): Int?
Link copied to clipboard
private fun handleError(logMessage: String, biometricErrorMessage: String, errorType: Int)
Link copied to clipboard
fun hasBiometricCapability(authenticators: Int): Boolean
Link copied to clipboard
Link copied to clipboard
private fun initBiometricAuthentication(cryptoObject: BiometricPrompt.CryptoObject?, authenticators: Int)
Link copied to clipboard
private fun initBiometricPrompt(authenticators: Int): BiometricPrompt
Link copied to clipboard