#include <dart_project.h>
Definition at line 35 of file dart_project.h.
◆ DartProject() [1/2]
| flutter::DartProject::DartProject |
( |
const std::wstring & |
assets_path, |
|
|
const std::wstring & |
icu_data_path, |
|
|
const std::wstring & |
aot_library_path |
|
) |
| |
|
inlineexplicit |
Definition at line 45 of file dart_project.h.
47 {
48 assets_path_ = assets_path;
49 icu_data_path_ = icu_data_path;
50 aot_library_path_ = aot_library_path;
51 }
◆ DartProject() [2/2]
| flutter::DartProject::DartProject |
( |
const std::wstring & |
path | ) |
|
|
inlineexplicit |
Definition at line 61 of file dart_project.h.
61 {
62 assets_path_ =
path + L
"\\flutter_assets";
63 icu_data_path_ =
path + L
"\\icudtl.dat";
64 aot_library_path_ =
path + L
"\\app.so";
65 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
References flutter::path.
◆ ~DartProject()
| flutter::DartProject::~DartProject |
( |
| ) |
|
|
default |
◆ dart_entrypoint()
| const std::string & flutter::DartProject::dart_entrypoint |
( |
| ) |
const |
|
inline |
◆ dart_entrypoint_arguments()
| const std::vector< std::string > & flutter::DartProject::dart_entrypoint_arguments |
( |
| ) |
const |
|
inline |
◆ gpu_preference()
◆ set_dart_entrypoint()
| void flutter::DartProject::set_dart_entrypoint |
( |
const std::string & |
entrypoint | ) |
|
|
inline |
Definition at line 73 of file dart_project.h.
73 {
74 if (entrypoint.empty()) {
75 return;
76 }
77 dart_entrypoint_ = entrypoint;
78 }
Referenced by flutter::TEST().
◆ set_dart_entrypoint_arguments()
| void flutter::DartProject::set_dart_entrypoint_arguments |
( |
std::vector< std::string > |
arguments | ) |
|
|
inline |
◆ set_gpu_preference()
| void flutter::DartProject::set_gpu_preference |
( |
GpuPreference |
gpu_preference | ) |
|
|
inline |
◆ set_ui_thread_policy()
| void flutter::DartProject::set_ui_thread_policy |
( |
UIThreadPolicy |
policy | ) |
|
|
inline |
Definition at line 105 of file dart_project.h.
105 {
106 ui_thread_policy_ =
policy;
107 }
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network policy
References flutter::policy.
◆ ui_thread_policy()
◆ DartProjectTest
◆ FlutterEngine
◆ FlutterViewController
The documentation for this class was generated from the following file: