Package io.flutter.embedding.android
Class KeyData
java.lang.Object
io.flutter.embedding.android.KeyData
The resulting Flutter key events generated by
KeyEmbedderResponder
, and are sent through
the messenger after being marshalled with toBytes()
.
This class is the Java adaption of KeyData
and KeyDataPacket
in the C engine.
Changes made to either side must also be made to the other.
Each KeyData
corresponds to a ui.KeyData
in the framework.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The device type of the key data.static enum
The action type of the key data. -
Field Summary
-
Constructor Summary
ConstructorDescriptionKeyData()
Creates an emptyKeyData
.KeyData
(ByteBuffer buffer) Unmarshal fields from a buffer. -
Method Summary
-
Field Details
-
CHANNEL
The channel that key data should be sent through.Must be kept in sync with kFlutterKeyDataChannel in embedder.cc
- See Also:
-
-
Constructor Details
-
KeyData
public KeyData()Creates an emptyKeyData
. -
KeyData
Unmarshal fields from a buffer.For the binary format, see
lib/ui/window/key_data_packet.h
.
-