#include "flutter/shell/platform/linux/fl_keyboard_channel.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_channel.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_method_codec.h"
Go to the source code of this file.
Classes | |
struct | _FlKeyboardChannel |
Functions | |
static FlMethodResponse * | get_keyboard_state (FlKeyboardChannel *self) |
static void | method_call_cb (FlMethodChannel *channel, FlMethodCall *method_call, gpointer user_data) |
static void | fl_keyboard_channel_dispose (GObject *object) |
static void | fl_keyboard_channel_class_init (FlKeyboardChannelClass *klass) |
static void | fl_keyboard_channel_init (FlKeyboardChannel *self) |
FlKeyboardChannel * | fl_keyboard_channel_new (FlBinaryMessenger *messenger, FlKeyboardChannelVTable *vtable, gpointer user_data) |
Variables | |
static constexpr char | kChannelName [] = "flutter/keyboard" |
static constexpr char | kGetKeyboardStateMethod [] = "getKeyboardState" |
|
static |
Definition at line 59 of file fl_keyboard_channel.cc.
References fl_keyboard_channel_dispose().
|
static |
Definition at line 51 of file fl_keyboard_channel.cc.
Referenced by fl_keyboard_channel_class_init().
|
static |
Definition at line 63 of file fl_keyboard_channel.cc.
FlKeyboardChannel* fl_keyboard_channel_new | ( | FlBinaryMessenger * | messenger, |
FlKeyboardChannelVTable * | vtable, | ||
gpointer | user_data | ||
) |
fl_keyboard_channel_new: @messenger: an #FlBinaryMessenger @vtable: callbacks for incoming method calls. @user_data: data to pass in callbacks.
Creates a new channel that implements SystemChannels.keyboard from the Flutter services library.
Returns: a new #FlKeyboardChannel
Definition at line 65 of file fl_keyboard_channel.cc.
References fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_standard_method_codec_new(), kChannelName, method_call_cb(), and user_data.
Referenced by fl_keyboard_handler_new().
|
static |
Definition at line 26 of file fl_keyboard_channel.cc.
References fl_method_success_response_new().
Referenced by method_call_cb().
|
static |
Definition at line 32 of file fl_keyboard_channel.cc.
References error, fl_method_call_get_name(), fl_method_call_respond(), fl_method_not_implemented_response_new(), get_keyboard_state(), kGetKeyboardStateMethod, method_call, and user_data.
Referenced by fl_keyboard_channel_new().
|
staticconstexpr |
Definition at line 10 of file fl_keyboard_channel.cc.
Referenced by fl_keyboard_channel_new().
|
staticconstexpr |
Definition at line 12 of file fl_keyboard_channel.cc.
Referenced by method_call_cb().