| 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"
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
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
45 NS_ASSUME_NONNULL_END
46
47 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERDARTPROJECT_INTERNAL_H_
FlutterDartProject.h
FLTDefaultSettingsForBundle
NS_ASSUME_NONNULL_BEGIN flutter::Settings FLTDefaultSettingsForBundle(NSBundle *_Nullable bundle=nil, NSProcessInfo *_Nullable processInfoOrNil=nil)
NS_ASSUME_NONNULL_BEGIN
#define NS_ASSUME_NONNULL_BEGIN
Definition: FlutterMacros.h:19
NS_ASSUME_NONNULL_END
#define NS_ASSUME_NONNULL_END
Definition: FlutterMacros.h:20
FlutterNSBundleUtils.h
FlutterDartProject
Definition: FlutterDartProject.mm:255
FlutterDartProject::isWideGamutEnabled
BOOL isWideGamutEnabled
Definition: FlutterDartProject_Internal.h:21
flutter
Definition: accessibility_bridge.h:26