Flutter Engine
fl_plugin_registrar.h File Reference
#include <glib-object.h>
#include "fl_binary_messenger.h"
#include "fl_view.h"

Go to the source code of this file.

Functions

G_BEGIN_DECLS G_DECLARE_FINAL_TYPE (FlPluginRegistrar, fl_plugin_registrar, FL, PLUGIN_REGISTRAR, GObject) FlBinaryMessenger *fl_plugin_registrar_get_messenger(FlPluginRegistrar *registrar)
 
FlView * fl_plugin_registrar_get_view (FlPluginRegistrar *registrar)
 

Function Documentation

◆ fl_plugin_registrar_get_view()

FlView* fl_plugin_registrar_get_view ( FlPluginRegistrar *  registrar)

fl_plugin_registrar_get_view: : an #FlPluginRegistrar.

Get the view that Flutter is rendering with.

Returns: (allow-none): an #FlView or NULL if running in headless mode.

Definition at line 72 of file fl_plugin_registrar.cc.

72  {
73  g_return_val_if_fail(FL_IS_PLUGIN_REGISTRAR(self), nullptr);
74 
75  return self->view;
76 }

◆ G_DECLARE_FINAL_TYPE()

G_BEGIN_DECLS G_DECLARE_FINAL_TYPE ( FlPluginRegistrar  ,
fl_plugin_registrar  ,
FL  ,
PLUGIN_REGISTRAR  ,
GObject   
)

FlPluginRegistrar:

#FlPluginRegistrar is used when registering new plugins. fl_plugin_registrar_get_messenger: : an #FlPluginRegistrar.

Gets the messenger this plugin can communicate with.

Returns: an #FlBinaryMessenger.