| Flutter iOS Embedder |

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/common/framework/Headers/FlutterDartProject.h"
12 #import "flutter/shell/platform/darwin/common/framework/Source/FlutterNSBundleUtils.h"
13
14 NS_ASSUME_NONNULL_BEGIN
15
16 flutter::Settings FLTDefaultSettingsForBundle(NSBundle* _Nullable bundle = nil,
17 NSProcessInfo* _Nullable processInfoOrNil = nil);
18
19 @interface FlutterDartProject ()
20
21 @property(nonatomic, readonly) BOOL isWideGamutEnabled;
22 @property(nonatomic, readonly) BOOL isImpellerEnabled;
23
24 /**
25 * This is currently used for *only for tests* to override settings.
26 */
27 - (instancetype)initWithSettings:(const flutter::Settings&)settings;
28 - (const flutter::Settings&)settings;
29 - (const flutter::PlatformData)defaultPlatformData;
30
31 - (flutter::RunConfiguration)runConfiguration;
32 - (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil;
33 - (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil
34 libraryOrNil:(nullable NSString*)dartLibraryOrNil;
35 - (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil
36 libraryOrNil:(nullable NSString*)dartLibraryOrNil
37 entrypointArgs:
38 (nullable NSArray<NSString*>*)entrypointArgs;
39
40 + (NSString*)flutterAssetsName:(NSBundle*)bundle;
41 + (NSString*)domainNetworkPolicy:(NSDictionary*)appTransportSecurity;
42 + (bool)allowsArbitraryLoads:(NSDictionary*)appTransportSecurity;
43
44 @end
45
46 NS_ASSUME_NONNULL_END
47
48 #endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
FLTDefaultSettingsForBundle
NS_ASSUME_NONNULL_BEGIN flutter::Settings FLTDefaultSettingsForBundle(NSBundle *_Nullable bundle=nil, NSProcessInfo *_Nullable processInfoOrNil=nil)
FlutterDartProject::isImpellerEnabled
BOOL isImpellerEnabled
Definition: FlutterDartProject_Internal.h:22
NS_ASSUME_NONNULL_END
#define NS_ASSUME_NONNULL_END
Definition: FlutterMacros.h:20
NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_BEGIN
Definition: FlutterMacros.h:19
flutter
Definition: accessibility_bridge.h:28
FlutterNSBundleUtils.h
FlutterDartProject.h
FlutterDartProject
Definition: FlutterDartProject.mm:262
FlutterDartProject::isWideGamutEnabled
BOOL isWideGamutEnabled
Definition: FlutterDartProject_Internal.h:21