on Key Press
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")}
/>Content copied to clipboard
notify biometrics module that a Field has changed focus.
Parameters
key Value
pressed key value, a string, most cases are just one character, but exception, e.g. 'backspace'
key Context
the context of what the text field is being used for