Credential Handler

class CredentialHandler(act: FragmentActivity)

Handler of BiometricPrompt API using fingerprint

Author

Jimly A.

Since

05-Sep-21

Parameters

act

Instance of FragmentActivity where the biometric is called

Constructors

Link copied to clipboard
fun CredentialHandler(act: FragmentActivity)

Instance of CredentialHandler for handling biometric

Functions

Link copied to clipboard
fun checkBiometricAvailable(action: (Boolean) -> Unit)

Method to check does the user's device support biometric using fingerprint

Link copied to clipboard
fun promptBiometric(listener: (Boolean, String) -> Unit)

Method to start biometric prompt

Sources

Link copied to clipboard