Flutter Engine
The Flutter Engine
|
Classes | |
enum | DeviceType |
enum | Type |
Public Member Functions | |
KeyData () | |
KeyData (@NonNull ByteBuffer buffer) | |
Static Public Attributes | |
static final String | CHANNEL = "flutter/keydata" |
Package Functions | |
ByteBuffer | toBytes () |
Package Attributes | |
long | timestamp |
Type | type |
long | physicalKey |
long | logicalKey |
boolean | synthesized |
DeviceType | deviceType |
String | character |
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.
Definition at line 22 of file KeyData.java.
|
inline |
|
inline |
Unmarshal fields from a buffer.
For the binary format, see lib/ui/window/key_data_packet.h
.
Definition at line 114 of file KeyData.java.
|
inlinepackage |
Marshal the key data to a new byte buffer.
For the binary format, see lib/ui/window/key_data_packet.h
.
Definition at line 158 of file KeyData.java.
|
static |
The channel that key data should be sent through.
Must be kept in sync with kFlutterKeyDataChannel in embedder.cc
Definition at line 30 of file KeyData.java.
|
package |
The character of this key data encoded in UTF-8.
Definition at line 149 of file KeyData.java.
|
package |
Definition at line 146 of file KeyData.java.
|
package |
Definition at line 144 of file KeyData.java.
|
package |
Definition at line 143 of file KeyData.java.
|
package |
Definition at line 145 of file KeyData.java.
|
package |
Definition at line 141 of file KeyData.java.
|
package |
Definition at line 142 of file KeyData.java.