Package io.flutter.embedding.android
Interface KeyboardManager.ViewDelegate
-
- All Known Implementing Classes:
FlutterView,FlutterView
- Enclosing class:
- KeyboardManager
public static interface KeyboardManager.ViewDelegateA set of interfaces that theKeyboardManagerneeds to interact with other components and the platform, and is typically implements byFlutterView.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BinaryMessengergetBinaryMessenger()Returns aBinaryMessengerto send platform messages with.booleanonTextInputKeyEvent(KeyEvent keyEvent)Send aKeyEventthat is not handled by the keyboard responders to the text input system.voidredispatch(KeyEvent keyEvent)Send aKeyEventthat is not handled by Flutter back to the platform.
-
-
-
Method Detail
-
getBinaryMessenger
BinaryMessenger getBinaryMessenger()
Returns aBinaryMessengerto send platform messages with.
-
onTextInputKeyEvent
boolean onTextInputKeyEvent(@NonNull KeyEvent keyEvent)Send aKeyEventthat is not handled by the keyboard responders to the text input system.- Parameters:
keyEvent- theKeyEventthat should be processed by the text input system. It must not be null.- Returns:
- Whether the text input handles the key event.
-
-