|
Flutter Linux Embedder
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_SHELL_PLATFORM_LINUX_PUBLIC_FLUTTER_LINUX_FL_METHOD_RESPONSE_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_PUBLIC_FLUTTER_LINUX_FL_METHOD_RESPONSE_H_
8 #if !defined(__FLUTTER_LINUX_INSIDE__) && !defined(FLUTTER_LINUX_COMPILATION)
9 #error "Only <flutter_linux/flutter_linux.h> can be included directly."
12 #include <glib-object.h>
30 #define FL_METHOD_RESPONSE_ERROR fl_method_response_error_quark()
50 struct _FlMethodResponseClass {
51 GObjectClass parent_class;
56 fl_method_success_response,
58 METHOD_SUCCESS_RESPONSE,
72 METHOD_NOT_IMPLEMENTED_RESPONSE,
161 FlMethodSuccessResponse* response);
175 const gchar* message,
197 FlMethodErrorResponse* response);
220 #endif // FLUTTER_SHELL_PLATFORM_LINUX_PUBLIC_FLUTTER_LINUX_FL_METHOD_RESPONSE_H_
G_MODULE_EXPORT fl_method_error_response
G_MODULE_EXPORT FlMethodErrorResponse * fl_method_error_response_new(const gchar *code, const gchar *message, FlValue *details)
G_MODULE_EXPORT FlMethodNotImplementedResponse * fl_method_not_implemented_response_new()
@ FL_METHOD_RESPONSE_ERROR_REMOTE_ERROR
@ FL_METHOD_RESPONSE_ERROR_NOT_IMPLEMENTED
G_MODULE_EXPORT G_DECLARE_FINAL_TYPE(FlMethodSuccessResponse, fl_method_success_response, FL, METHOD_SUCCESS_RESPONSE, FlMethodResponse) G_MODULE_EXPORT G_DECLARE_FINAL_TYPE(FlMethodErrorResponse
typedefG_BEGIN_DECLS struct _FlValue FlValue
FlMethodSuccessResponse * fl_method_success_response_new(FlValue *result)
FlValue * fl_method_success_response_get_result(FlMethodSuccessResponse *response)
G_MODULE_EXPORT FlValue * fl_method_response_get_result(FlMethodResponse *self, GError **error)
const G_MODULE_EXPORT gchar * fl_method_error_response_get_message(FlMethodErrorResponse *self)
@ FL_METHOD_RESPONSE_ERROR_FAILED
G_MODULE_EXPORT FlMethodResponse G_MODULE_EXPORT GError ** error
G_MODULE_EXPORT FlValue * fl_method_error_response_get_details(FlMethodErrorResponse *self)
G_MODULE_EXPORT G_DECLARE_DERIVABLE_TYPE(FlMethodResponse, fl_method_response, FL, METHOD_RESPONSE, GObject) struct _FlMethodResponseClass
const G_MODULE_EXPORT gchar * fl_method_error_response_get_code(FlMethodErrorResponse *self)
G_MODULE_EXPORT METHOD_ERROR_RESPONSE
fl_method_not_implemented_response
G_MODULE_EXPORT GQuark fl_method_response_error_quark(void) G_GNUC_CONST