Package io.flutter.embedding.android
Class KeyChannelResponder
- java.lang.Object
-
- io.flutter.embedding.android.KeyChannelResponder
-
- All Implemented Interfaces:
KeyboardManager.Responder
public class KeyChannelResponder extends Object implements KeyboardManager.Responder
AKeyboardManager.Responder
ofKeyboardManager
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
Constructors Constructor Description KeyChannelResponder(KeyEventChannel keyEventChannel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleEvent(KeyEvent keyEvent, KeyboardManager.Responder.OnKeyEventHandledCallback onKeyEventHandledCallback)
Informs thisKeyboardManager.Responder
that a newKeyEvent
needs processing.
-
-
-
Constructor Detail
-
KeyChannelResponder
public KeyChannelResponder(@NonNull KeyEventChannel keyEventChannel)
-
-
Method Detail
-
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
.
-
-