Flutter Engine
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 SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
6 #define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
7 
8 #include "flutter/common/settings.h"
9 #include "flutter/runtime/platform_data.h"
10 #include "flutter/shell/common/engine.h"
11 #import "flutter/shell/platform/darwin/ios/framework/Headers/FlutterDartProject.h"
12 
14 
15 @interface FlutterDartProject ()
16 
17 - (const flutter::Settings&)settings;
18 - (const flutter::PlatformData)defaultPlatformData;
19 
20 - (flutter::RunConfiguration)runConfiguration;
21 - (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil;
22 - (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil
23  libraryOrNil:(nullable NSString*)dartLibraryOrNil;
24 
25 + (NSString*)flutterAssetsName:(NSBundle*)bundle;
26 + (NSString*)domainNetworkPolicy:(NSDictionary*)appTransportSecurity;
27 + (bool)allowsArbitraryLoads:(NSDictionary*)appTransportSecurity;
28 
29 /**
30  * The embedder can specify data that the isolate can request synchronously on launch. Engines
31  * launched using this configuration can access the persistent isolate data via the
32  * `Window.getPersistentIsolateData` accessor.
33  *
34  * @param data The persistent isolate data. This data is persistent for the duration of the Flutter
35  * application and is available even after isolate restarts. Because of this lifecycle,
36  * the size of this data must be kept to a minimum and platform channels used for
37  * communication that does not require synchronous embedder to isolate communication
38  * close to isolate launch.
39  **/
40 - (void)setPersistentIsolateData:(NSData*)data;
41 
42 @end
43 
45 
46 #endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
#define NS_ASSUME_NONNULL_END
Definition: FlutterMacros.h:20
#define NS_ASSUME_NONNULL_BEGIN
Definition: FlutterMacros.h:19