Flutter Linux Embedder
fl_standard_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_PUBLIC_FLUTTER_LINUX_FL_STANDARD_METHOD_CODEC_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_PUBLIC_FLUTTER_LINUX_FL_STANDARD_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"
16 
17 G_BEGIN_DECLS
18 
19 G_MODULE_EXPORT
20 G_DECLARE_FINAL_TYPE(FlStandardMethodCodec,
21  fl_standard_method_codec,
22  FL,
23  STANDARD_METHOD_CODEC,
24  FlMethodCodec)
25 
26 /**
27  * FlStandardMethodCodec:
28  *
29  * #FlStandardMethodCodec is an #FlMethodCodec that implements method calls
30  * using the Flutter standard message encoding. It should be used with a
31  * #FlMethodChannel.
32  *
33  * #FlStandardMethodCodec matches the StandardMethodCodec class in the Flutter
34  * services library.
35  */
36 
37 /**
38  * fl_standard_method_codec_new:
39  *
40  * Creates an #FlStandardMethodCodec.
41  *
42  * Returns: a new #FlStandardMethodCodec.
43  */
44 FlStandardMethodCodec* fl_standard_method_codec_new();
45 
46 /**
47  * fl_standard_method_codec_new:
48  * @message_codec: A #FlMessageCodec.
49  *
50  * Creates an #FlStandardMethodCodec with a custom message codec.
51  *
52  * Returns: a new #FlStandardMethodCodec.
53  */
55  FlStandardMessageCodec* message_codec);
56 
57 G_END_DECLS
58 
59 #endif // FLUTTER_SHELL_PLATFORM_LINUX_PUBLIC_FLUTTER_LINUX_FL_STANDARD_METHOD_CODEC_H_
fl_standard_method_codec_new
G_MODULE_EXPORT FlStandardMethodCodec * fl_standard_method_codec_new()
Definition: fl_standard_method_codec.cc:291
fl_standard_method_codec_new_with_message_codec
FlStandardMethodCodec * fl_standard_method_codec_new_with_message_codec(FlStandardMessageCodec *message_codec)
Definition: fl_standard_method_codec.cc:298
fl_method_codec.h
FL
FL
Definition: fl_binary_messenger.cc:27
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_MODULE_EXPORT G_DECLARE_FINAL_TYPE(FlStandardMethodCodec, fl_standard_method_codec, FL, STANDARD_METHOD_CODEC, FlMethodCodec) FlStandardMethodCodec *fl_standard_method_codec_new()
fl_standard_message_codec.h