public static class KeyEventChannel.FlutterKeyEvent extends Object
Modifier and Type | Field and Description |
---|---|
int |
codePoint
The code point for the Unicode character produced by this event, taking into account the meta
keys currently pressed.
|
Character |
complexCharacter
The character produced by this event, including any combining characters pressed before it.
|
int |
deviceId
The id for the device this event came from.
|
long |
eventId
The unique id for this Flutter key event.
|
int |
flags
The flags for this key event.
|
int |
keyCode
The Android key code for this event.
|
int |
metaState
The meta key state for the Android key event.
|
int |
plainCodePoint
The code point for the Unicode character produced by this event if no meta keys were pressed
(by passing 0 to
KeyEvent.getUnicodeChar(int) ). |
int |
productId
The productId of the device that produced this key event.
|
int |
repeatCount
The repeat count for this event.
|
int |
scanCode
The Android scan code for the key pressed.
|
int |
source
The source of the key event.
|
int |
vendorId
The vendorId of the device that produced this key event.
|
Constructor and Description |
---|
FlutterKeyEvent(int deviceId,
int flags,
int plainCodePoint,
int codePoint,
int keyCode,
Character complexCharacter,
int scanCode,
int metaState,
int source,
int repeatCount,
long eventId) |
FlutterKeyEvent(KeyEvent androidKeyEvent,
Character complexCharacter,
long eventId) |
FlutterKeyEvent(KeyEvent androidKeyEvent,
long eventId) |
public final int deviceId
public final int flags
public final int plainCodePoint
KeyEvent.getUnicodeChar(int)
).public final int codePoint
public final int keyCode
@Nullable public final Character complexCharacter
public final int scanCode
public final int metaState
public final int source
public final int vendorId
public final int productId
public final int repeatCount
public final long eventId
This id is used to identify pending events when results are received from the framework. This ID does not come from Android.
public FlutterKeyEvent(@NonNull KeyEvent androidKeyEvent, long eventId)
public FlutterKeyEvent(@NonNull KeyEvent androidKeyEvent, @Nullable Character complexCharacter, long eventId)
public FlutterKeyEvent(int deviceId, int flags, int plainCodePoint, int codePoint, int keyCode, @Nullable Character complexCharacter, int scanCode, int metaState, int source, int repeatCount, long eventId)