invoke
operator fun invoke(block: BiometricAuthenticatorConfig.() -> Unit = {}): BiometricOnlyAuthenticator
Factory method for creating a BiometricOnlyAuthenticator with DSL configuration.
This operator function provides a convenient way to create and configure a pure biometric authenticator using a DSL-style configuration block. The factory method applies the configuration and returns a fully configured authenticator instance that enforces biometric-only authentication without fallback options.
Example configurations:
// Basic biometric-only configuration
val authenticator = BiometricOnlyAuthenticator {
promptInfo {
setTitle("Secure Access")
setSubtitle("Biometric required")
setNegativeButtonText("Cancel")
}
}Content copied to clipboard
Return
Configured BiometricOnlyAuthenticator instance ready for biometric-only authentication
Parameters
block
Configuration lambda applied to BiometricAuthenticatorConfig for customizing biometric-only authenticator behavior, UI appearance, and security parameters