Go to the source code of this file.
Functions | |
G_BEGIN_DECLS const G_MODULE_EXPORT gchar * | fl_method_call_get_name (FlMethodCall *method_call) |
FlValue * | fl_method_call_get_args (FlMethodCall *method_call) |
gboolean | fl_method_call_respond (FlMethodCall *method_call, FlMethodResponse *response, GError **error) |
gboolean | fl_method_call_respond_success (FlMethodCall *method_call, FlValue *result, GError **error) |
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().
G_BEGIN_DECLS 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().
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().
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().