onFocusChange

fun onFocusChange(focus: Boolean, keyContext: String)

This is specially for Jetpack Compose UI, if you are NOT using Jetpack Compose UI, just ignore it Normally work with onTextChange

    PasswordField(
value = password,
onChange = {
password = it
sdk.onTextChange(password, "password") },
modifier = Modifier.fillMaxWidth()
.onFocusChanged {
sdk.onFocusChange(it.isFocused, "password")
}
)

notify biometrics module that a Field has changed focus.

Parameters

focus

true if the Field has focus, false otherwise

keyContext

the context of what the text field is being used for