| Flutter Linux Embedder |

Functions
fl_keyboard_handler.h File Reference
`#include <gdk/gdk.h>`
`#include "flutter/shell/platform/linux/fl_keyboard_manager.h"`
`#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"`

Go to the source code of this file.

## Functions
G_BEGIN_DECLS | G_DECLARE_FINAL_TYPE (FlKeyboardHandler, fl_keyboard_handler, FL, KEYBOARD_HANDLER, GObject)
FlKeyboardHandler * | fl_keyboard_handler_new (FlBinaryMessenger *messenger, FlKeyboardManager *keyboard_manager)

## Function Documentation

## ◆ fl_keyboard_handler_new()

FlKeyboardHandler* fl_keyboard_handler_new | ( | FlBinaryMessenger * | messenger,
|  | FlKeyboardManager * | keyboard_manager
| ) |  |

FlKeyboardHandler:

Provides the channel to receive keyboard requests from the Dart code. fl_keyboard_handler_new: @messenger: a #FlBinaryMessenger. @keyboard_manager: a #FlKeyboardManager.

Create a new #FlKeyboardHandler.

Returns: a new #FlKeyboardHandler.

Definition at line 63 of file fl_keyboard_handler.cc.

65 {
66 FlKeyboardHandler* self = FL_KEYBOARD_HANDLER(
67 g_object_new(fl_keyboard_handler_get_type(), nullptr));
68
69 self->keyboard_manager = FL_KEYBOARD_MANAGER(g_object_ref(keyboard_manager));
70 self->channel =
71 fl_keyboard_channel_new(messenger, &keyboard_channel_vtable, self);
72
73 return self;
74 }
fl_keyboard_channel_new
FlKeyboardChannel * fl_keyboard_channel_new(FlBinaryMessenger *messenger, FlKeyboardChannelVTable *vtable, gpointer user_data)
Definition: fl_keyboard_channel.cc:65
keyboard_channel_vtable
static FlKeyboardChannelVTable keyboard_channel_vtable
Definition: fl_keyboard_handler.cc:58

References fl_keyboard_channel_new(), and keyboard_channel_vtable.

Referenced by setup_keyboard(), and TEST().

## ◆ G_DECLARE_FINAL_TYPE()

G_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlKeyboardHandler | ,
|  | fl_keyboard_handler | ,
|  | FL | ,
|  | KEYBOARD_HANDLER | ,
|  | GObject |
| ) |  |