| Flutter Linux Embedder |

fl_settings_handler.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_SETTINGS_HANDLER_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_SETTINGS_HANDLER_H_
7
8 #include "flutter/shell/platform/linux/fl_settings.h"
9 #include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
10
11 G_BEGIN_DECLS
12
13 G_DECLARE_FINAL_TYPE(FlSettingsHandler,
14 fl_settings_handler,
15 FL,
16 SETTINGS_HANDLER,
17 GObject);
18
19 /**
20 * FlSettingsHandler:
21 *
22 * #FlSettingsHandler is a handler that implements the Flutter user settings
23 * channel.
24 */
25
26 /**
27 * fl_settings_handler_new:
28 * @messenger: an #FlEngine
29 *
30 * Creates a new handler that sends user settings to the Flutter engine.
31 *
32 * Returns: a new #FlSettingsHandler
33 */
34 FlSettingsHandler* fl_settings_handler_new(FlEngine* engine);
35
36 /**
37 * fl_settings_handler_start:
38 * @handler: an #FlSettingsHandler.
39 *
40 * Sends the current settings to the engine and updates when they change.
41 */
42 void fl_settings_handler_start(FlSettingsHandler* handler,
43 FlSettings* settings);
44
45 G_END_DECLS
46
47 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_SETTINGS_HANDLER_H_
FL
FL
Definition: fl_binary_messenger.cc:27
fl_engine.h
fl_settings.h
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlSettingsHandler, fl_settings_handler, FL, SETTINGS_HANDLER, GObject)
fl_settings_handler_new
FlSettingsHandler * fl_settings_handler_new(FlEngine *engine)
Definition: fl_settings_handler.cc:74
fl_settings_handler_start
void fl_settings_handler_start(FlSettingsHandler *handler, FlSettings *settings)
Definition: fl_settings_handler.cc:88