Package io.flutter.embedding.android
Class KeyData
- java.lang.Object
-
- io.flutter.embedding.android.KeyData
-
public class KeyData extends Object
The resulting Flutter key events generated byKeyEmbedderResponder, and are sent through the messenger after being marshalled withtoBytes().This class is the Java adaption of
KeyDataandKeyDataPacketin the C engine. Changes made to either side must also be made to the other.Each
KeyDatacorresponds to aui.KeyDatain the framework.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyData.TypeThe action type of the key data.
-
Constructor Summary
Constructors Constructor Description KeyData()Creates an emptyKeyData.KeyData(ByteBuffer buffer)Unmarshal fields from a buffer.
-
-
-
Field Detail
-
CHANNEL
public static final String CHANNEL
The channel that key data should be sent through.Must be kept in sync with kFlutterKeyDataChannel in embedder.cc
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
KeyData
public KeyData()
Creates an emptyKeyData.
-
KeyData
public KeyData(@NonNull ByteBuffer buffer)Unmarshal fields from a buffer.For the binary format, see
lib/ui/window/key_data_packet.h.
-
-