Flutter Engine
 
Loading...
Searching...
No Matches
fl_keyboard_channel.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_KEYBOARD_CHANNEL_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_FL_KEYBOARD_CHANNEL_H_
7
9
10G_BEGIN_DECLS
11
12G_DECLARE_FINAL_TYPE(FlKeyboardChannel,
13 fl_keyboard_channel,
14 FL,
15 KEYBOARD_CHANNEL,
16 GObject);
17
18/**
19 * FlKeyboardChannel:
20 *
21 * #FlKeyboardChannel is a channel that implements the shell side
22 * of SystemChannels.keyboard from the Flutter services library.
23 */
24
25typedef struct {
26 FlValue* (*get_keyboard_state)(gpointer user_data);
28
29/**
30 * fl_keyboard_channel_new:
31 * @messenger: an #FlBinaryMessenger
32 * @vtable: callbacks for incoming method calls.
33 * @user_data: data to pass in callbacks.
34 *
35 * Creates a new channel that implements SystemChannels.keyboard from the
36 * Flutter services library.
37 *
38 * Returns: a new #FlKeyboardChannel
39 */
40FlKeyboardChannel* fl_keyboard_channel_new(FlBinaryMessenger* messenger,
42 gpointer user_data);
43
44G_END_DECLS
45
46#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_KEYBOARD_CHANNEL_H_
FlKeyboardChannel * fl_keyboard_channel_new(FlBinaryMessenger *messenger, FlKeyboardChannelVTable *vtable, gpointer user_data)
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlKeyboardChannel, fl_keyboard_channel, FL, KEYBOARD_CHANNEL, GObject)
typedefG_BEGIN_DECLS struct _FlValue FlValue
Definition fl_value.h:42