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 FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_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"
13 
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 
23 /**
24  * This is currently used for *only for tests* to override settings.
25  */
26 - (instancetype)initWithSettings:(const flutter::Settings&)settings;
27 - (const flutter::Settings&)settings;
28 - (const flutter::PlatformData)defaultPlatformData;
29 
30 - (flutter::RunConfiguration)runConfiguration;
31 - (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil;
32 - (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil
33  libraryOrNil:(nullable NSString*)dartLibraryOrNil;
34 - (flutter::RunConfiguration)runConfigurationForEntrypoint:(nullable NSString*)entrypointOrNil
35  libraryOrNil:(nullable NSString*)dartLibraryOrNil
36  entrypointArgs:
37  (nullable NSArray<NSString*>*)entrypointArgs;
38 
39 + (NSString*)flutterAssetsName:(NSBundle*)bundle;
40 + (NSString*)domainNetworkPolicy:(NSDictionary*)appTransportSecurity;
41 + (bool)allowsArbitraryLoads:(NSDictionary*)appTransportSecurity;
42 
43 @end
44 
46 
47 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
FLTDefaultSettingsForBundle
NS_ASSUME_NONNULL_BEGIN flutter::Settings FLTDefaultSettingsForBundle(NSBundle *_Nullable bundle=nil, NSProcessInfo *_Nullable processInfoOrNil=nil)
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:26
FlutterNSBundleUtils.h
FlutterDartProject.h
FlutterDartProject
Definition: FlutterDartProject.mm:252
FlutterDartProject::isWideGamutEnabled
BOOL isWideGamutEnabled
Definition: FlutterDartProject_Internal.h:21