Flutter Engine
fl_engine.h File Reference
#include <glib-object.h>
#include "fl_binary_messenger.h"
#include "fl_dart_project.h"

Go to the source code of this file.

Functions

G_BEGIN_DECLS FlEngine * fl_engine_new_headless (FlDartProject *project)
 
FlBinaryMessenger * fl_engine_get_binary_messenger (FlEngine *engine)
 

Function Documentation

◆ fl_engine_get_binary_messenger()

FlBinaryMessenger* fl_engine_get_binary_messenger ( FlEngine *  engine)

fl_engine_get_binary_messenger: : an #FlEngine.

Gets the messenger to communicate with this engine.

Returns: an #FlBinaryMessenger.

Definition at line 597 of file fl_engine.cc.

Referenced by fl_view_constructed(), and fl_view_get_registrar_for_plugin().

598  {
599  g_return_val_if_fail(FL_IS_ENGINE(self), nullptr);
600  return self->binary_messenger;
601 }

◆ fl_engine_new_headless()

G_BEGIN_DECLS FlEngine* fl_engine_new_headless ( FlDartProject *  project)

FlEngine:

#FlEngine is an object that contains a running Flutter engine. fl_engine_new_headless: : an #FlDartProject.

Creates new Flutter engine running in headless mode.

Returns: a new #FlEngine.

Definition at line 347 of file fl_engine.cc.

References fl_engine_new(), fl_renderer_headless_new(), and _FlEngine::renderer.

347  {
348  g_autoptr(FlRendererHeadless) renderer = fl_renderer_headless_new();
349  return fl_engine_new(project, FL_RENDERER(renderer));
350 }
FlRendererHeadless * fl_renderer_headless_new()
FlEngine * fl_engine_new(FlDartProject *project, FlRenderer *renderer)
Definition: fl_engine.cc:337