#include <FlutterDartProject.h>
Instance Methods | |
| (instancetype) | - initWithPrecompiledDartBundle: |
| ("Use -init instead.") | - FLUTTER_UNAVAILABLE |
| (NSArray< NSString * > *dartEntrypointArguments) | - API_UNAVAILABLE |
| (instancetype) | - initWithSettings: [implementation] |
| (const flutter::Settings &) | - settings [implementation] |
| (const flutter::PlatformData) | - defaultPlatformData [implementation] |
| (flutter::RunConfiguration) | - runConfiguration [implementation] |
| (flutter::RunConfiguration) | - runConfigurationForEntrypoint: [implementation] |
| (flutter::RunConfiguration) | - runConfigurationForEntrypoint:libraryOrNil: [implementation] |
| (flutter::RunConfiguration) | - runConfigurationForEntrypoint:libraryOrNil:entrypointArgs: [implementation] |
| (nonnull instancetype) | - initWithAssetsPath:ICUDataPath: [implementation] |
Class Methods | |
| (NSString *) | + defaultBundleIdentifier |
| (NSString *) | + lookupKeyForAsset: |
| (NSString *) | + lookupKeyForAsset:fromBundle: |
| (NSString *) | + lookupKeyForAsset:fromPackage: |
| (NSString *) | + lookupKeyForAsset:fromPackage:fromBundle: |
| (NSString *) | + flutterAssetsName: [implementation] |
| (NSString *) | + domainNetworkPolicy: [implementation] |
| (bool) | + allowsArbitraryLoads: [implementation] |
| (NSString *) | + flutterAssetsNameWithBundle: [implementation] |
Properties | |
| BOOL | isWideGamutEnabled [implementation] |
| NSString * | assetsPath [implementation] |
| NSString * | ICUDataPath [implementation] |
| void(* | rootIsolateCreateCallback )(void *_Nullable) [implementation] |
| BOOL | enableImpeller [implementation] |
| BOOL | enableFlutterGPU [implementation] |
A set of Flutter and Dart assets used by a FlutterEngine to initialize execution.
Definition at line 19 of file FlutterDartProject.h.
|
implementation |
Provided by category FlutterDartProject().
| - (NSArray< NSString * > *dartEntrypointArguments) API_UNAVAILABLE | (ios) |
An NSArray of NSStrings to be passed as command line arguments to the Dart entrypoint.
If this is not explicitly set, this will default to the contents of [NSProcessInfo arguments], without the binary name.
Set this to nil to pass no arguments to the Dart entrypoint.
| + (NSString *) defaultBundleIdentifier |
Returns the default identifier for the bundle where we expect to find the Flutter Dart application.
Definition at line 42 of file FlutterDartProject.mm.
References fml::MessageLoopTaskQueues::AddTaskObserver(), callback, flutter::CommandLineFromNSProcessInfo(), DoesHardwareSupportWideGamut(), error, FLTAssetsPathFromBundle(), FLTFrameworkBundleWithIdentifier(), FLTGetApplicationBundle(), FML_CHECK, fml::MessageLoop::GetCurrentTaskQueueId(), fml::MessageLoopTaskQueues::GetInstance(), flutter::DartVM::IsRunningPrecompiledCode(), kApplicationKernelSnapshotFileName, key, flutter::kMegaByteSizeInBytes, kPlatformStrongDill, kPlatformStrongDillSize, message, fml::MessageLoopTaskQueues::RemoveTaskObserver(), and flutter::SettingsFromCommandLine().
|
implementation |
Provided by category FlutterDartProject().
|
implementation |
Provided by category FlutterDartProject().
| - ("Use -init instead.") FLUTTER_UNAVAILABLE |
Unavailable - use init instead.
|
implementation |
Provided by category FlutterDartProject().
|
implementation |
Get the Flutter assets name path by pass the bundle. If bundle is nil, we use the main bundle as default.
Provided by category FlutterDartProject().
|
implementation |
Instead of looking up the assets and ICU data path in the application bundle, this initializer allows callers to create a Dart project with custom locations specified for the both.
Provided by category FlutterDartProject().
| - (instancetype) initWithPrecompiledDartBundle: | (nullable NSBundle*) | NS_DESIGNATED_INITIALIZER |
Initializes a Flutter Dart project from a bundle.
The bundle must either contain a flutter_assets resource directory, or set the Info.plist key FLTAssetsPath to override that name (if you are doing a custom build using a different name).
| bundle | The bundle containing the Flutter assets directory. If nil, the App framework created by Flutter will be used. |
Definition at line 42 of file FlutterDartProject.mm.
|
implementation |
This is currently used for only for tests to override settings.
Provided by category FlutterDartProject().
| + (NSString *) lookupKeyForAsset: | (NSString*) | asset |
Returns the file name for the given asset. If the bundle with the identifier "io.flutter.flutter.app" exists, it will try use that bundle; otherwise, it will use the main bundle. To specify a different bundle, use +lookupKeyForAsset:fromBundle.
| asset | The name of the asset. The name can be hierarchical. |
Definition at line 42 of file FlutterDartProject.mm.
| + (NSString *) lookupKeyForAsset: | (NSString*) | asset | |
| fromBundle: | (nullable NSBundle*) | bundle | |
Returns the file name for the given asset. The returned file name can be used to access the asset in the supplied bundle.
| asset | The name of the asset. The name can be hierarchical. |
| bundle | The NSBundle to use for looking up the asset. |
Definition at line 42 of file FlutterDartProject.mm.
| + (NSString *) lookupKeyForAsset: | (NSString*) | asset | |
| fromPackage: | (NSString*) | package | |
Returns the file name for the given asset which originates from the specified package. The returned file name can be used to access the asset in the application's main bundle.
| asset | The name of the asset. The name can be hierarchical. |
| package | The name of the package from which the asset originates. |
Definition at line 42 of file FlutterDartProject.mm.
| + (NSString *) lookupKeyForAsset: | (NSString*) | asset | |
| fromPackage: | (NSString*) | package | |
| fromBundle: | (nullable NSBundle*) | bundle | |
Returns the file name for the given asset which originates from the specified package. The returned file name can be used to access the asset in the specified bundle.
| asset | The name of the asset. The name can be hierarchical. |
| package | The name of the package from which the asset originates. |
| bundle | The bundle to use when doing the lookup. |
Definition at line 42 of file FlutterDartProject.mm.
|
implementation |
Provided by category FlutterDartProject().
|
implementation |
Provided by category FlutterDartProject().
|
implementation |
Provided by category FlutterDartProject().
|
implementation |
Provided by category FlutterDartProject().
|
implementation |
Provided by category FlutterDartProject().
|
readnonatomicassignimplementation |
The path to the Flutter assets directory.
Provided by category FlutterDartProject().
Definition at line 22 of file FlutterDartProject_Internal.h.
|
readnonatomicassignimplementation |
Whether Flutter GPU is enabled
Provided by category FlutterDartProject().
Definition at line 42 of file FlutterDartProject_Internal.h.
|
readnonatomicassignimplementation |
Whether the Impeller rendering backend is enabled
Provided by category FlutterDartProject().
Definition at line 37 of file FlutterDartProject_Internal.h.
|
readnonatomicassignimplementation |
The path to the ICU data file.
Provided by category FlutterDartProject().
Definition at line 27 of file FlutterDartProject_Internal.h.
|
readnonatomicassignimplementation |
Provided by category FlutterDartProject().
Definition at line 21 of file FlutterDartProject_Internal.h.
|
readwritenonatomicassignimplementation |
The callback invoked by the engine in root isolate scope.
Provided by category FlutterDartProject().
Definition at line 32 of file FlutterDartProject_Internal.h.
Referenced by flutter::testing::TEST_F(), and flutter::testing::TEST_F().