on Focus Change
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")
}
)
Content copied to clipboard
notify biometrics module that a Field has changed focus.
Parameters
focus
true if the Field has focus, false otherwise
key Context
the context of what the text field is being used for