Class KeyEventChannel
java.lang.Object
io.flutter.embedding.engine.systemchannels.KeyEventChannel
Event message channel for key events to/from the Flutter framework.
Sends key up/down events to the framework, and receives asynchronous messages from the framework about whether or not the key was handled.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A handler of incoming key handling messages.static class
A key event as defined by Flutter. -
Field Summary
-
Constructor Summary
ConstructorDescriptionKeyEventChannel
(BinaryMessenger binaryMessenger) A constructor that creates a KeyEventChannel with the default message handler. -
Method Summary
Modifier and TypeMethodDescriptionvoid
sendFlutterKeyEvent
(KeyEventChannel.FlutterKeyEvent keyEvent, boolean isKeyUp, KeyEventChannel.EventResponseHandler responseHandler)
-
Field Details
-
channel
-
-
Constructor Details
-
KeyEventChannel
A constructor that creates a KeyEventChannel with the default message handler.- Parameters:
binaryMessenger
- the binary messenger used to send messages on this channel.
-
-
Method Details
-
sendFlutterKeyEvent
public void sendFlutterKeyEvent(@NonNull KeyEventChannel.FlutterKeyEvent keyEvent, boolean isKeyUp, @NonNull KeyEventChannel.EventResponseHandler responseHandler)
-