Class KeyEventChannel
- java.lang.Object
-
- io.flutter.embedding.engine.systemchannels.KeyEventChannel
-
public class KeyEventChannel extends Object
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
Nested Classes Modifier and Type Class Description static interfaceKeyEventChannel.EventResponseHandlerA handler of incoming key handling messages.static classKeyEventChannel.FlutterKeyEventA key event as defined by Flutter.
-
Field Summary
Fields Modifier and Type Field Description BasicMessageChannel<Object>channel
-
Constructor Summary
Constructors Constructor Description KeyEventChannel(BinaryMessenger binaryMessenger)A constructor that creates a KeyEventChannel with the default message handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendFlutterKeyEvent(KeyEventChannel.FlutterKeyEvent keyEvent, boolean isKeyUp, KeyEventChannel.EventResponseHandler responseHandler)
-
-
-
Field Detail
-
channel
@NonNull public final BasicMessageChannel<Object> channel
-
-
Constructor Detail
-
KeyEventChannel
public KeyEventChannel(@NonNull BinaryMessenger binaryMessenger)A constructor that creates a KeyEventChannel with the default message handler.- Parameters:
binaryMessenger- the binary messenger used to send messages on this channel.
-
-
Method Detail
-
sendFlutterKeyEvent
public void sendFlutterKeyEvent(@NonNull KeyEventChannel.FlutterKeyEvent keyEvent, boolean isKeyUp, @NonNull KeyEventChannel.EventResponseHandler responseHandler)
-
-