I want to capture InputConnection of TextField on focus change, the method was onCreateInputConnection in EditText. Is there such method? How to achieve it without using AndroidView?
Tried this but doesn't work either.
@Composable
fun KeyboardScreen() {
val rootView = LocalView.current
...
Button(onClick = {
val inputConnection = BaseInputConnection(rootView, true)
inputConnection.commitText("hello", 5)
}) {
Text(text = "test")
}
mutableStateOfholder andonValueChangelambda. Could you elaborate on your use case?