#include <glib-object.h>#include <gmodule.h>Go to the source code of this file.
Enumerations | |
| enum | FlUIThreadPolicy { FL_UI_THREAD_POLICY_DEFAULT , FL_UI_THREAD_POLICY_RUN_ON_PLATFORM_THREAD , FL_UI_THREAD_POLICY_RUN_ON_SEPARATE_THREAD } |
Functions | |
| G_BEGIN_DECLS G_MODULE_EXPORT FlDartProject * | fl_dart_project_new () |
| void | fl_dart_project_set_aot_library_path (FlDartProject *project, const gchar *path) |
| const gchar * | fl_dart_project_get_aot_library_path (FlDartProject *project) |
| void | fl_dart_project_set_assets_path (FlDartProject *project, gchar *path) |
| const gchar * | fl_dart_project_get_assets_path (FlDartProject *project) |
| void | fl_dart_project_set_icu_data_path (FlDartProject *project, gchar *path) |
| const gchar * | fl_dart_project_get_icu_data_path (FlDartProject *project) |
| void | fl_dart_project_set_dart_entrypoint_arguments (FlDartProject *project, char **argv) |
| gchar ** | fl_dart_project_get_dart_entrypoint_arguments (FlDartProject *project) |
| void | fl_dart_project_set_ui_thread_policy (FlDartProject *project, FlUIThreadPolicy policy) |
| FlUIThreadPolicy | fl_dart_project_get_ui_thread_policy (FlDartProject *project) |
| void | fl_dart_project_set_enable_impeller (FlDartProject *project, gboolean enable_impeller) |
| gboolean | fl_dart_project_get_enable_impeller (FlDartProject *project) |
| void | fl_dart_project_set_enable_flutter_gpu (FlDartProject *project, gboolean enable_flutter_gpu) |
| gboolean | fl_dart_project_get_enable_flutter_gpu (FlDartProject *project) |
| enum FlUIThreadPolicy |
FlUIThreadPolicy: Configures the thread policy for running the UI isolate. @FL_UI_THREAD_POLICY_DEFAULT: Defaut value. Currently will run the UI isolate on separate thread, later will change to run on platform thread. @FL_UI_THREAD_POLICY_RUN_ON_PLATFORM_THREAD: Run the UI isolate on the platform thread. @FL_UI_THREAD_POLICY_RUN_ON_SEPARATE_THREAD: Run the UI isolate on a separate thread.
| Enumerator | |
|---|---|
| FL_UI_THREAD_POLICY_DEFAULT | |
| FL_UI_THREAD_POLICY_RUN_ON_PLATFORM_THREAD | |
| FL_UI_THREAD_POLICY_RUN_ON_SEPARATE_THREAD | |
Definition at line 141 of file fl_dart_project.h.
| const gchar* fl_dart_project_get_aot_library_path | ( | FlDartProject * | project | ) |
fl_dart_project_get_aot_library_path: @project: an #FlDartProject.
Gets the path to the AOT library in the Flutter application.
Returns: (type filename): an absolute file path, e.g. "/projects/my_dart_project/lib/libapp.so".
Definition at line 77 of file fl_dart_project.cc.
Referenced by fl_engine_start(), and TEST_F().
| const gchar* fl_dart_project_get_assets_path | ( | FlDartProject * | project | ) |
fl_dart_project_get_assets_path: @project: an #FlDartProject.
Gets the path to the directory containing the assets used in the Flutter application.
Returns: (type filename): an absolute directory path, e.g. "/projects/my_dart_project/data/flutter_assets".
Definition at line 90 of file fl_dart_project.cc.
Referenced by fl_engine_start(), and TEST_F().
| gchar** fl_dart_project_get_dart_entrypoint_arguments | ( | FlDartProject * | project | ) |
fl_dart_project_get_dart_entrypoint_arguments: @project: an #FlDartProject.
Gets the command line arguments to be passed through to the Dart entrypoint function.
Returns: a NULL-terminated array of strings containing the command line arguments to be passed to the Dart entrypoint.
Definition at line 109 of file fl_dart_project.cc.
Referenced by fl_engine_start(), and TEST_F().
| gboolean fl_dart_project_get_enable_flutter_gpu | ( | FlDartProject * | project | ) |
fl_dart_project_get_enable_flutter_gpu: @project: an #FlDartProject.
Returns: TRUE if the Flutter GPU API is enabled.
Definition at line 158 of file fl_dart_project.cc.
Referenced by fl_engine_start(), and TEST_F().
| gboolean fl_dart_project_get_enable_impeller | ( | FlDartProject * | project | ) |
fl_dart_project_get_enable_impeller: @project: an #FlDartProject.
Returns: TRUE if the Impeller renderer is enabled.
Definition at line 145 of file fl_dart_project.cc.
Referenced by fl_engine_start(), and TEST_F().
| const gchar* fl_dart_project_get_icu_data_path | ( | FlDartProject * | project | ) |
fl_dart_project_get_icu_data_path: @project: an #FlDartProject.
Gets the path to the ICU data file in the Flutter application.
Returns: (type filename): an absolute file path, e.g. "/projects/my_dart_project/data/icudtl.dat".
Definition at line 103 of file fl_dart_project.cc.
Referenced by fl_engine_start(), and TEST_F().
| FlUIThreadPolicy fl_dart_project_get_ui_thread_policy | ( | FlDartProject * | project | ) |
fl_dart_project_get_ui_thread_policy: @project: an #FlDartProject.
Returns: the thread policy used for running the UI isolate.
Definition at line 131 of file fl_dart_project.cc.
References FL_UI_THREAD_POLICY_DEFAULT.
Referenced by fl_engine_start().
| G_BEGIN_DECLS G_MODULE_EXPORT FlDartProject* fl_dart_project_new | ( | ) |
FlDartProject:
#FlDartProject represents a Dart project. It is used to provide information about the application when creating an #FlView. fl_dart_project_new:
Creates a Flutter project for the currently running executable. The following data files are required relative to the location of the executable:
Returns: a new #FlDartProject.
Definition at line 54 of file fl_dart_project.cc.
References get_executable_dir(), and TRUE.
Referenced by fl_application_activate(), fl_engine_new_with_binary_messenger(), TEST(), and TEST_F().
| void fl_dart_project_set_aot_library_path | ( | FlDartProject * | project, |
| const gchar * | path | ||
| ) |
fl_dart_project_set_aot_library_path: @project: an #FlDartProject. @path: the absolute path to the AOT library in the Flutter application.
Sets the path to the AOT library in the Flutter application, which is the path to libapp.so. By default this is lib/libapp.so relative to the executable directory.
Definition at line 70 of file fl_dart_project.cc.
Referenced by TEST_F().
| void fl_dart_project_set_assets_path | ( | FlDartProject * | project, |
| gchar * | path | ||
| ) |
fl_dart_project_set_assets_path: @project: an #FlDartProject. @path: the absolute path to the assets directory.
Sets the path to the directory containing the assets used in the Flutter application. By default, this is the data/flutter_assets subdirectory relative to the executable directory.
Definition at line 83 of file fl_dart_project.cc.
Referenced by TEST_F().
| void fl_dart_project_set_dart_entrypoint_arguments | ( | FlDartProject * | project, |
| char ** | argv | ||
| ) |
fl_dart_project_set_dart_entrypoint_arguments: @project: an #FlDartProject. @argv: a pointer to a NULL-terminated array of C strings containing the command line arguments.
Sets the command line arguments to be passed through to the Dart entrypoint function.
Definition at line 115 of file fl_dart_project.cc.
Referenced by fl_application_activate(), and TEST_F().
| void fl_dart_project_set_enable_flutter_gpu | ( | FlDartProject * | project, |
| gboolean | enable_flutter_gpu | ||
| ) |
fl_dart_project_set_enable_flutter_gpu: @project: an #FlDartProject. @enable_flutter_gpu: whether to enable the Flutter GPU API.
Sets whether the Flutter GPU API (package:flutter_gpu) should be enabled. Flutter GPU requires the Impeller renderer.
Definition at line 151 of file fl_dart_project.cc.
Referenced by TEST_F().
| void fl_dart_project_set_enable_impeller | ( | FlDartProject * | project, |
| gboolean | enable_impeller | ||
| ) |
fl_dart_project_set_enable_impeller: @project: an #FlDartProject. @enable_impeller: whether to enable the Impeller renderer.
Sets whether the Impeller renderer should be enabled.
Definition at line 138 of file fl_dart_project.cc.
Referenced by TEST_F().
| void fl_dart_project_set_icu_data_path | ( | FlDartProject * | project, |
| gchar * | path | ||
| ) |
fl_dart_project_set_icu_data_path: @project: an #FlDartProject. @path: the absolute path to the ICU data file.
Sets the path to the ICU data file used in the Flutter application. By default, this is data/icudtl.dat relative to the executable directory.
Definition at line 96 of file fl_dart_project.cc.
Referenced by TEST_F().
| void fl_dart_project_set_ui_thread_policy | ( | FlDartProject * | project, |
| FlUIThreadPolicy | policy | ||
| ) |
fl_dart_project_set_ui_thread_policy: @project: an #FlDartProject. @policy: the thread policy to use for running the UI isolate.
Definition at line 124 of file fl_dart_project.cc.
Referenced by TEST_F().