◆ hasCallback
◆ initWithEvent:callback:userData:
- (instancetype) initWithEvent: |
|
(const FlutterKeyEvent*) |
event |
callback: |
|
(nullable FlutterKeyEventCallback) |
callback |
userData: |
|
(nullable void*) |
userData |
|
|
| |
Definition at line 25 of file FlutterEmbedderKeyResponderTest.mm.
25 :(
const FlutterKeyEvent*)event
29 _data =
new FlutterKeyEvent(*event);
30 if (event->character !=
nullptr) {
31 size_t len = strlen(event->character);
32 char* character =
new char[len + 1];
33 strlcpy(character, event->character,
sizeof(character));
34 _data->character = character;
References callback, and userData.
◆ respond:
- (void) respond: |
|
(BOOL) |
handled |
|
◆ callback
- (FlutterKeyEventCallback) callback |
|
readwritenonatomicassign |
◆ data
- (FlutterKeyEvent*) data |
|
readwritenonatomicassign |
◆ userData
The documentation for this class was generated from the following file: