Lukáš Kúšik
09/16/2024, 10:57 AMInterceptPlatformTextInput
does not seem to work yet.Lukáš Kúšik
09/16/2024, 11:16 AMCompositionLocalProvider(
LocalTextInputService provides EmptyTextInputService,
) {
InterceptPlatformTextInput(
interceptor = { request, nextHandler ->
awaitCancellation()
}
) {
TextField()
}
}
val EmptyTextInputService = TextInputService(object : PlatformTextInputService {
override fun hideSoftwareKeyboard() {
}
override fun showSoftwareKeyboard() {
}
override fun startInput(
value: TextFieldValue,
imeOptions: ImeOptions,
onEditCommand: (List<EditCommand>) -> Unit,
onImeActionPerformed: (ImeAction) -> Unit
) {
}
override fun stopInput() {
}
override fun updateState(oldValue: TextFieldValue?, newValue: TextFieldValue) {
}
})
Erik Ziegler
10/18/2024, 10:34 PMInterceptPlatformTextInput
works for Android and EmptyTextInputService
is required to get the same result for iOS.