Flutter Engine
 
Loading...
Searching...
No Matches
fl_platform_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_PLATFORM_HANDLER_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_FL_PLATFORM_HANDLER_H_
7
9
10G_BEGIN_DECLS
11
12G_DECLARE_FINAL_TYPE(FlPlatformHandler,
13 fl_platform_handler,
14 FL,
15 PLATFORM_HANDLER,
16 GObject);
17
18/**
19 * FlPlatformHandler:
20 *
21 * #FlPlatformHandler is a handler that implements the shell side
22 * of SystemChannels.platform from the Flutter services library.
23 */
24
25/**
26 * fl_platform_handler_new:
27 * @messenger: an #FlBinaryMessenger
28 *
29 * Creates a new handler that implements SystemChannels.platform from the
30 * Flutter services library.
31 *
32 * Returns: a new #FlPlatformHandler
33 */
34FlPlatformHandler* fl_platform_handler_new(FlBinaryMessenger* messenger);
35
36/**
37 * fl_platform_handler_request_app_exit:
38 * @handler: an #FlPlatformHandler
39 *
40 * Request the application exits (i.e. due to the window being requested to be
41 * closed).
42 *
43 * Calling this will only send an exit request to the framework if the framework
44 * has already indicated that it is ready to receive requests by sending a
45 * "System.initializationComplete" method call on the platform channel. Calls
46 * before initialization is complete will result in an immediate exit.
47 */
48void fl_platform_handler_request_app_exit(FlPlatformHandler* handler);
49
50G_END_DECLS
51
52#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_PLATFORM_HANDLER_H_
const gchar FlBinaryMessengerMessageHandler handler
FlPlatformHandler * fl_platform_handler_new(FlBinaryMessenger *messenger)
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlPlatformHandler, fl_platform_handler, FL, PLATFORM_HANDLER, GObject)
void fl_platform_handler_request_app_exit(FlPlatformHandler *handler)