Package io.flutter.embedding.android
Class KeyChannelResponder
java.lang.Object
io.flutter.embedding.android.KeyChannelResponder
- All Implemented Interfaces:
KeyboardManager.Responder
A
KeyboardManager.Responder
of KeyboardManager
that handles events by sending the
raw information through the method channel.
This class corresponds to the RawKeyboard API in the framework.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.flutter.embedding.android.KeyboardManager.Responder
KeyboardManager.Responder.OnKeyEventHandledCallback
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleEvent
(KeyEvent keyEvent, KeyboardManager.Responder.OnKeyEventHandledCallback onKeyEventHandledCallback) Informs thisKeyboardManager.Responder
that a newKeyEvent
needs processing.
-
Constructor Details
-
KeyChannelResponder
-
-
Method Details
-
handleEvent
public void handleEvent(@NonNull KeyEvent keyEvent, @NonNull KeyboardManager.Responder.OnKeyEventHandledCallback onKeyEventHandledCallback) Description copied from interface:KeyboardManager.Responder
Informs thisKeyboardManager.Responder
that a newKeyEvent
needs processing.- Specified by:
handleEvent
in interfaceKeyboardManager.Responder
- Parameters:
keyEvent
- the newKeyEvent
thisKeyboardManager.Responder
may be interested in.onKeyEventHandledCallback
- the method to call when thisKeyboardManager.Responder
has decided whether to handle theKeyEvent
.
-