Flutter Engine
The Flutter Engine
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
8#include "flutter/shell/platform/linux/fl_settings.h"
9#include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
10
11G_BEGIN_DECLS
12
13G_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 */
34FlSettingsPlugin* 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 */
42void fl_settings_plugin_start(FlSettingsPlugin* plugin, FlSettings* settings);
43
44G_END_DECLS
45
46#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_SETTINGS_PLUGIN_H_
FlutterEngine engine
Definition: main.cc:68
void fl_settings_plugin_start(FlSettingsPlugin *plugin, FlSettings *settings)
FlSettingsPlugin * fl_settings_plugin_new(FlEngine *engine)
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlSettingsPlugin, fl_settings_plugin, FL, SETTINGS_PLUGIN, GObject)