#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_call.h"
#include "flutter/shell/platform/linux/fl_method_call_private.h"
#include "flutter/shell/platform/linux/fl_method_channel_private.h"
#include <gmodule.h>
Go to the source code of this file.
Classes | |
struct | _FlMethodCall |
Functions | |
static void | fl_method_call_dispose (GObject *object) |
static void | fl_method_call_class_init (FlMethodCallClass *klass) |
static void | fl_method_call_init (FlMethodCall *self) |
FlMethodCall * | fl_method_call_new (const gchar *name, FlValue *args, FlMethodChannel *channel, FlBinaryMessengerResponseHandle *response_handle) |
const G_MODULE_EXPORT gchar * | fl_method_call_get_name (FlMethodCall *self) |
G_MODULE_EXPORT FlValue * | fl_method_call_get_args (FlMethodCall *self) |
G_MODULE_EXPORT gboolean | fl_method_call_respond (FlMethodCall *self, FlMethodResponse *response, GError **error) |
G_MODULE_EXPORT gboolean | fl_method_call_respond_success (FlMethodCall *self, FlValue *result, GError **error) |
G_MODULE_EXPORT gboolean | fl_method_call_respond_error (FlMethodCall *self, const gchar *code, const gchar *message, FlValue *details, GError **error) |
G_MODULE_EXPORT gboolean | fl_method_call_respond_not_implemented (FlMethodCall *self, GError **error) |
|
static |
Definition at line 38 of file fl_method_call.cc.
References fl_method_call_dispose().
|
static |
Definition at line 27 of file fl_method_call.cc.
References fl_value_unref().
Referenced by fl_method_call_class_init().
G_MODULE_EXPORT FlValue* fl_method_call_get_args | ( | FlMethodCall * | method_call | ) |
fl_method_call_get_args: @method_call: an #FlMethodCall.
Gets the arguments passed to the method.
Returns: an FlValue.
Definition at line 72 of file fl_method_call.cc.
Referenced by clipboard_get_data_async(), method_call_cb(), method_call_error_cb(), method_call_not_implemented_cb(), method_call_success_cb(), and system_exit_application().
const G_MODULE_EXPORT gchar* fl_method_call_get_name | ( | FlMethodCall * | method_call | ) |
FlMethodCall:
#FlMethodCall represents and incoming method call as returned by an #FlMethodChannel. fl_method_call_get_name: @method_call: an #FlMethodCall.
Gets the name of the method call.
Returns: a method name.
Definition at line 67 of file fl_method_call.cc.
Referenced by method_call_cb(), method_call_error_cb(), method_call_handler(), method_call_not_implemented_cb(), and method_call_success_cb().
|
static |
Definition at line 42 of file fl_method_call.cc.
FlMethodCall* fl_method_call_new | ( | const gchar * | name, |
FlValue * | args, | ||
FlMethodChannel * | channel, | ||
FlBinaryMessengerResponseHandle * | response_handle | ||
) |
Definition at line 44 of file fl_method_call.cc.
References args, and fl_value_ref().
Referenced by message_cb().
G_MODULE_EXPORT gboolean fl_method_call_respond | ( | FlMethodCall * | method_call, |
FlMethodResponse * | response, | ||
GError ** | error | ||
) |
fl_method_call_respond: @method_call: an #FlMethodCall. @response: an #FlMethodResponse. @error: (allow-none): #GError location to store the error occurring, or NULL to ignore.
Responds to a method call.
Returns: TRUE on success.
Definition at line 77 of file fl_method_call.cc.
References error, fl_method_channel_respond(), and TRUE.
Referenced by method_call_cb(), method_call_handler(), request_app_exit_response_cb(), and send_response().
G_MODULE_EXPORT gboolean fl_method_call_respond_error | ( | FlMethodCall * | self, |
const gchar * | code, | ||
const gchar * | message, | ||
FlValue * | details, | ||
GError ** | error | ||
) |
Definition at line 111 of file fl_method_call.cc.
References error, fl_method_channel_respond(), and fl_method_error_response_new().
Referenced by method_call_error_cb(), and method_call_error_error_cb().
G_MODULE_EXPORT gboolean fl_method_call_respond_not_implemented | ( | FlMethodCall * | self, |
GError ** | error | ||
) |
Definition at line 125 of file fl_method_call.cc.
References error, fl_method_channel_respond(), and fl_method_not_implemented_response_new().
Referenced by method_call_error_error_cb(), method_call_not_implemented_cb(), and method_call_success_error_cb().
G_MODULE_EXPORT gboolean fl_method_call_respond_success | ( | FlMethodCall * | method_call, |
FlValue * | result, | ||
GError ** | error | ||
) |
fl_method_call_respond_success: @method_call: an #FlMethodCall.
Convenience method that responds to method call with #FlMethodSuccessResponse.
Returns: TRUE on success.
Definition at line 100 of file fl_method_call.cc.
References error, fl_method_channel_respond(), fl_method_success_response_new(), and result.
Referenced by method_call_success_cb(), method_call_success_error_cb(), and reassign_method_cb().