Flutter Engine
 
Loading...
Searching...
No Matches
FlutterDartProject_Internal.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
6#define FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
7
10
11#include <string>
12#include <vector>
13
14/**
15 * Provides access to data needed to construct a FlutterProjectArgs for the project.
16 */
17@interface FlutterDartProject ()
18
19/**
20 * The path to the Flutter assets directory.
21 */
22@property(nonatomic, readonly, nullable) NSString* assetsPath;
23
24/**
25 * The path to the ICU data file.
26 */
27@property(nonatomic, readonly, nullable) NSString* ICUDataPath;
28
29/**
30 * The callback invoked by the engine in root isolate scope.
31 */
32@property(nonatomic, nullable) void (*rootIsolateCreateCallback)(void* _Nullable);
33
34/**
35 * Whether the Impeller rendering backend is enabled
36 */
37@property(nonatomic, readonly) BOOL enableImpeller;
38
39/**
40 * Whether Flutter GPU is enabled
41 */
42@property(nonatomic, readonly) BOOL enableFlutterGPU;
43
44/**
45 * Instead of looking up the assets and ICU data path in the application bundle, this initializer
46 * allows callers to create a Dart project with custom locations specified for the both.
47 */
48- (nonnull instancetype)initWithAssetsPath:(nonnull NSString*)assets
49 ICUDataPath:(nonnull NSString*)icuPath NS_DESIGNATED_INITIALIZER;
50
51@end
52
53#endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
int BOOL