 |
Flutter Linux Embedder
|
|
Go to the documentation of this file.
24 G_DEFINE_TYPE(FlKeyboardChannel, fl_keyboard_channel, G_TYPE_OBJECT)
27 g_autoptr(
FlValue) result =
self->vtable->get_keyboard_state(self->user_data);
35 FlKeyboardChannel*
self = FL_KEYBOARD_CHANNEL(
user_data);
38 g_autoptr(FlMethodResponse) response =
nullptr;
45 g_autoptr(GError)
error =
nullptr;
47 g_warning(
"Failed to send method call response: %s",
error->message);
52 FlKeyboardChannel*
self = FL_KEYBOARD_CHANNEL(
object);
54 g_clear_object(&self->channel);
56 G_OBJECT_CLASS(fl_keyboard_channel_parent_class)->dispose(
object);
68 g_return_val_if_fail(FL_IS_BINARY_MESSENGER(messenger),
nullptr);
69 g_return_val_if_fail(vtable !=
nullptr,
nullptr);
71 FlKeyboardChannel*
self = FL_KEYBOARD_CHANNEL(
72 g_object_new(fl_keyboard_channel_get_type(),
nullptr));
74 self->vtable = vtable;
static constexpr char kChannelName[]
FlMethodChannel * channel
G_MODULE_EXPORT FlMethodChannel * fl_method_channel_new(FlBinaryMessenger *messenger, const gchar *name, FlMethodCodec *codec)
G_MODULE_EXPORT FlMethodNotImplementedResponse * fl_method_not_implemented_response_new()
G_MODULE_EXPORT FlStandardMethodCodec * fl_standard_method_codec_new()
static FlMethodResponse * get_keyboard_state(FlKeyboardChannel *self)
typedefG_BEGIN_DECLS struct _FlValue FlValue
G_MODULE_EXPORT FlMethodSuccessResponse * fl_method_success_response_new(FlValue *result)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue gpointer user_data
G_MODULE_EXPORT gboolean fl_method_call_respond(FlMethodCall *self, FlMethodResponse *response, GError **error)
static void method_call_cb(FlMethodChannel *channel, FlMethodCall *method_call, gpointer user_data)
G_BEGIN_DECLS G_MODULE_EXPORT FlMethodCall * method_call
FlKeyboardChannel * fl_keyboard_channel_new(FlBinaryMessenger *messenger, FlKeyboardChannelVTable *vtable, gpointer user_data)
const G_MODULE_EXPORT gchar * fl_method_call_get_name(FlMethodCall *self)
G_DEFINE_TYPE(FlBasicMessageChannelResponseHandle, fl_basic_message_channel_response_handle, G_TYPE_OBJECT) static void fl_basic_message_channel_response_handle_dispose(GObject *object)
static void fl_keyboard_channel_class_init(FlKeyboardChannelClass *klass)
G_MODULE_EXPORT void fl_method_channel_set_method_call_handler(FlMethodChannel *self, FlMethodChannelMethodCallHandler handler, gpointer user_data, GDestroyNotify destroy_notify)
const uint8_t uint32_t uint32_t GError ** error
static void fl_keyboard_channel_dispose(GObject *object)
FlKeyboardChannelVTable * vtable
static void fl_keyboard_channel_init(FlKeyboardChannel *self)
static constexpr char kGetKeyboardStateMethod[]