5 #ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_CLIENT_WRAPPER_INCLUDE_FLUTTER_DART_PROJECT_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_CLIENT_WRAPPER_INCLUDE_FLUTTER_DART_PROJECT_H_
61 const std::wstring& icu_data_path,
62 const std::wstring& aot_library_path) {
63 assets_path_ = assets_path;
64 icu_data_path_ = icu_data_path;
65 aot_library_path_ = aot_library_path;
77 assets_path_ = path + L
"\\flutter_assets";
78 icu_data_path_ = path + L
"\\icudtl.dat";
79 aot_library_path_ = path + L
"\\app.so";
89 if (entrypoint.empty()) {
92 dart_entrypoint_ = entrypoint;
101 dart_entrypoint_arguments_ = std::move(arguments);
107 return dart_entrypoint_arguments_;
121 ui_thread_policy_ = policy;
146 const std::wstring& assets_path()
const {
return assets_path_; }
147 const std::wstring& icu_data_path()
const {
return icu_data_path_; }
148 const std::wstring& aot_library_path()
const {
return aot_library_path_; }
151 std::wstring assets_path_;
153 std::wstring icu_data_path_;
156 std::wstring aot_library_path_;
158 std::string dart_entrypoint_;
160 std::vector<std::string> dart_entrypoint_arguments_;
void set_dart_entrypoint(const std::string &entrypoint)
void set_ui_thread_policy(UIThreadPolicy policy)
void set_gpu_preference(GpuPreference gpu_preference)
DartProject(const std::wstring &assets_path, const std::wstring &icu_data_path, const std::wstring &aot_library_path)
DartProject(const std::wstring &path)
AccessibilityMode accessibility_mode() const
void set_dart_entrypoint_arguments(std::vector< std::string > arguments)
UIThreadPolicy ui_thread_policy() const
const std::string & dart_entrypoint() const
const std::vector< std::string > & dart_entrypoint_arguments() const
void set_accessibility_mode(AccessibilityMode accessibility_mode)
GpuPreference gpu_preference() const
@ HighPerformancePreference