Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.util.FakeKeyEvent Class Reference
Inheritance diagram for io.flutter.util.FakeKeyEvent:

Public Member Functions

 FakeKeyEvent (int action, int keyCode)
 
 FakeKeyEvent (int action, int keyCode, char character)
 
 FakeKeyEvent (int action, int scancode, int code, int repeat, char character, int metaState)
 
final int getUnicodeChar ()
 

Detailed Description

Definition at line 7 of file FakeKeyEvent.java.

Constructor & Destructor Documentation

◆ FakeKeyEvent() [1/3]

io.flutter.util.FakeKeyEvent.FakeKeyEvent ( int  action,
int  keyCode 
)
inline

Definition at line 8 of file FakeKeyEvent.java.

8 {
9 super(action, keyCode);
10 }

◆ FakeKeyEvent() [2/3]

io.flutter.util.FakeKeyEvent.FakeKeyEvent ( int  action,
int  keyCode,
char  character 
)
inline

Definition at line 12 of file FakeKeyEvent.java.

12 {
13 super(action, keyCode);
14 this.character = character;
15 }

◆ FakeKeyEvent() [3/3]

io.flutter.util.FakeKeyEvent.FakeKeyEvent ( int  action,
int  scancode,
int  code,
int  repeat,
char  character,
int  metaState 
)
inline

Definition at line 17 of file FakeKeyEvent.java.

18 {
19 super(0, 0, action, code, repeat, metaState, 0, scancode);
20 this.character = character;
21 }
static unsigned repeat(SkFixed fx, int max)

Member Function Documentation

◆ getUnicodeChar()

final int io.flutter.util.FakeKeyEvent.getUnicodeChar ( )
inline

Definition at line 25 of file FakeKeyEvent.java.

25 {
26 if (getKeyCode() == KeyEvent.KEYCODE_BACK) {
27 return 0;
28 }
29 return character;
30 }

The documentation for this class was generated from the following file: