#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_call.h"
Go to the source code of this file.
Classes | |
struct | FlPlatformChannelVTable |
Enumerator | |
---|---|
FL_PLATFORM_CHANNEL_EXIT_RESPONSE_CANCEL | |
FL_PLATFORM_CHANNEL_EXIT_RESPONSE_EXIT |
Definition at line 18 of file fl_platform_channel.h.
Enumerator | |
---|---|
FL_PLATFORM_CHANNEL_EXIT_TYPE_CANCELABLE | |
FL_PLATFORM_CHANNEL_EXIT_TYPE_REQUIRED |
Definition at line 13 of file fl_platform_channel.h.
FlMethodResponse* fl_platform_channel_make_system_request_app_exit_response | ( | FlPlatformChannelExitResponse | exit_response | ) |
Definition at line 330 of file fl_platform_channel.cc.
References fl_method_success_response_new(), FL_PLATFORM_CHANNEL_EXIT_RESPONSE_CANCEL, FL_PLATFORM_CHANNEL_EXIT_RESPONSE_EXIT, fl_value_new_map(), fl_value_new_string(), fl_value_set_string_take(), kExitResponseCancel, kExitResponseExit, and kExitResponseKey.
Referenced by fl_platform_channel_respond_system_exit_application(), and system_exit_application().
FlPlatformChannel* fl_platform_channel_new | ( | FlBinaryMessenger * | messenger, |
FlPlatformChannelVTable * | vtable, | ||
gpointer | user_data | ||
) |
fl_platform_channel_new: @messenger: an #FlBinaryMessenger @vtable: callbacks for incoming method calls. @user_data: data to pass in callbacks.
Creates a new channel that implements SystemChannels.platform from the Flutter services library.
Returns: a new #FlPlatformChannel
Definition at line 222 of file fl_platform_channel.cc.
References fl_json_method_codec_new(), fl_method_channel_new(), fl_method_channel_set_method_call_handler(), kChannelName, method_call_cb(), and user_data.
Referenced by fl_platform_handler_new(), and TEST().
void fl_platform_channel_respond_clipboard_get_data | ( | FlMethodCall * | method_call, |
const gchar * | text | ||
) |
Definition at line 284 of file fl_platform_channel.cc.
References error, fl_method_call_respond(), fl_method_success_response_new(), fl_value_new_map(), fl_value_new_string(), fl_value_set_string_take(), kGetClipboardDataMethod, kTextKey, and method_call.
Referenced by clipboard_text_cb().
void fl_platform_channel_respond_clipboard_has_strings | ( | FlMethodCall * | method_call, |
gboolean | has_strings | ||
) |
Definition at line 302 of file fl_platform_channel.cc.
References error, fl_method_call_respond(), fl_method_success_response_new(), fl_value_new_bool(), fl_value_new_map(), fl_value_set_string_take(), kClipboardHasStringsMethod, kValueKey, and method_call.
Referenced by clipboard_text_has_strings_cb().
void fl_platform_channel_respond_system_exit_application | ( | FlMethodCall * | method_call, |
FlPlatformChannelExitResponse | exit_response | ||
) |
Definition at line 318 of file fl_platform_channel.cc.
References error, fl_method_call_respond(), fl_platform_channel_make_system_request_app_exit_response(), and method_call.
Referenced by request_app_exit_response_cb().
void fl_platform_channel_system_request_app_exit | ( | FlPlatformChannel * | channel, |
FlPlatformChannelExitType | type, | ||
GCancellable * | cancellable, | ||
GAsyncReadyCallback | callback, | ||
gpointer | user_data | ||
) |
fl_platform_channel_system_request_app_exit: @channel: an #FlPlatformChannel
Request the application exits (i.e. due to the window being requested to be closed).
Calling this will only send an exit request to the framework if the framework has already indicated that it is ready to receive requests by sending a "System.initializationComplete" method call on the platform channel. Calls before initialization is complete will result in an immediate exit.
Definition at line 243 of file fl_platform_channel.cc.
References args, fl_method_channel_invoke_method(), FL_PLATFORM_CHANNEL_EXIT_TYPE_CANCELABLE, FL_PLATFORM_CHANNEL_EXIT_TYPE_REQUIRED, fl_value_new_map(), fl_value_new_string(), fl_value_set_string_take(), kExitTypeCancelable, kExitTypeKey, kExitTypeRequired, kRequestAppExitMethod, type, and user_data.
Referenced by request_app_exit(), and TEST().
gboolean fl_platform_channel_system_request_app_exit_finish | ( | GObject * | object, |
GAsyncResult * | result, | ||
FlPlatformChannelExitResponse * | exit_response, | ||
GError ** | error | ||
) |
Definition at line 268 of file fl_platform_channel.cc.
References error, fl_method_channel_invoke_method_finish(), get_exit_response(), and TRUE.
Referenced by request_app_exit_response_cb(), and TEST().
G_DECLARE_FINAL_TYPE | ( | FlPlatformChannel | , |
fl_platform_channel | , | ||
FL | , | ||
PLATFORM_CHANNEL | , | ||
GObject | |||
) |