Flutter Linux Embedder
fl_settings_plugin.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_PLUGIN_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_SETTINGS_PLUGIN_H_
7 
10 
11 G_BEGIN_DECLS
12 
13 G_DECLARE_FINAL_TYPE(FlSettingsPlugin,
14  fl_settings_plugin,
15  FL,
16  SETTINGS_PLUGIN,
17  GObject);
18 
19 /**
20  * FlSettingsPlugin:
21  *
22  * #FlSettingsPlugin is a plugin that implements the Flutter user settings
23  * channel.
24  */
25 
26 /**
27  * fl_settings_plugin_new:
28  * @messenger: an #FlEngine
29  *
30  * Creates a new plugin that sends user settings to the Flutter engine.
31  *
32  * Returns: a new #FlSettingsPlugin
33  */
34 FlSettingsPlugin* fl_settings_plugin_new(FlEngine* engine);
35 
36 /**
37  * fl_settings_plugin_start:
38  * @self: an #FlSettingsPlugin.
39  *
40  * Sends the current settings to the engine and updates when they change.
41  */
42 void fl_settings_plugin_start(FlSettingsPlugin* plugin, FlSettings* settings);
43 
44 G_END_DECLS
45 
46 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_SETTINGS_PLUGIN_H_
fl_settings_plugin_start
void fl_settings_plugin_start(FlSettingsPlugin *plugin, FlSettings *settings)
Definition: fl_settings_plugin.cc:112
FL
FL
Definition: fl_binary_messenger.cc:27
fl_settings.h
fl_engine.h
fl_settings_plugin_new
FlSettingsPlugin * fl_settings_plugin_new(FlEngine *engine)
Definition: fl_settings_plugin.cc:94
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlSettingsPlugin, fl_settings_plugin, FL, SETTINGS_PLUGIN, GObject)