onKeyPress

fun onKeyPress(keyValue: String, keyContext: String)

This is for situations where text input is not handled through a standard Android UI Text component. This includes: Jetpack Compose React Native Onscreen Keyboards Where input is handled through a standard text field, this should not be used. This is specially react native app, if you are NOT using react native app, just ignore it Normally work with onFocusChange

    <TextInput
placeholder="Enter Password"
style={styles.inputField}
inputMode="text"
onKeyPress={event => {
let {key} = event.nativeEvent;
sdk.onKeyPress(key, "password")
}}
onFocus={_ => sdk.onFocusChange(true, "password")}
onBlur={_ => sdk.onFocusChange(false, "password")}
/>

notify biometrics module that a Field has changed focus.

Parameters

keyValue

pressed key value, a string, most cases are just one character, but exception, e.g. 'backspace'

keyContext

the context of what the text field is being used for