| 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 62 of file fl_keyboard_handler.cc.

64 {
65 FlKeyboardHandler* self = FL_KEYBOARD_HANDLER(
66 g_object_new(fl_keyboard_handler_get_type(), nullptr));
67
68 self->keyboard_manager = FL_KEYBOARD_MANAGER(g_object_ref(keyboard_manager));
69
70 // Setup the flutter/keyboard channel.
71 self->channel =
72 fl_keyboard_channel_new(messenger, &keyboard_channel_vtable, self);
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:57

References fl_keyboard_channel_new(), and keyboard_channel_vtable.

Referenced by init_keyboard(), and TEST().

## ◆ G_DECLARE_FINAL_TYPE()

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