| Flutter Linux Embedder |

fl_json_method_codec.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_JSON_METHOD_CODEC_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_JSON_METHOD_CODEC_H_
7
8 #if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
9 #error "Only <flutter_linux/flutter_linux.h> can be included directly."
10 #endif
11
12 #include <gmodule.h>
13
14 #include "fl_method_codec.h"
15
16 G_BEGIN_DECLS
17
18 G_MODULE_EXPORT
19 G_DECLARE_FINAL_TYPE(FlJsonMethodCodec,
20 fl_json_method_codec,
21 FL,
22 JSON_METHOD_CODEC,
23 FlMethodCodec)
24
25 /**
26 * FlJsonMethodCodec:
27 *
28 * #FlJsonMessageCodec is an #FlMethodCodec that implements method calls using
29 * the Flutter JSON message encoding. It should be used with an
30 * #FlMethodChannel.
31 *
32 * #FlJsonMethodCodec matches the JSONMethodCodec class in the Flutter services
33 * library.
34 */
35
36 /**
37 * fl_json_method_codec_new:
38 *
39 * Creates an #FlJsonMethodCodec.
40 *
41 * Returns: a new #FlJsonMethodCodec.
42 */
43 FlJsonMethodCodec* fl_json_method_codec_new();
44
45 G_END_DECLS
46
47 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_JSON_METHOD_CODEC_H_
fl_json_method_codec_new
G_MODULE_EXPORT FlJsonMethodCodec * fl_json_method_codec_new()
Definition: fl_json_method_codec.cc:205
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_MODULE_EXPORT G_DECLARE_FINAL_TYPE(FlJsonMethodCodec, fl_json_method_codec, FL, JSON_METHOD_CODEC, FlMethodCodec) FlJsonMethodCodec *fl_json_method_codec_new()
fl_method_codec.h
FL
FL
Definition: fl_binary_messenger.cc:27