Flutter Engine
The 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
8#import "flutter/shell/platform/darwin/common/framework/Headers/FlutterDartProject.h"
9#import "flutter/shell/platform/darwin/common/framework/Source/FlutterNSBundleUtils.h"
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 * Instead of looking up the assets and ICU data path in the application bundle, this initializer
41 * allows callers to create a Dart project with custom locations specified for the both.
42 */
43- (nonnull instancetype)initWithAssetsPath:(nonnull NSString*)assets
44 ICUDataPath:(nonnull NSString*)icuPath NS_DESIGNATED_INITIALIZER;
45
46@end
47
48#endif // FLUTTER_SHELL_PLATFORM_DARWIN_MACOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
int BOOL