Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
FlutterDartProject_Internal.h File Reference

Go to the source code of this file.

Functions

NS_ASSUME_NONNULL_BEGIN flutter::Settings FLTDefaultSettingsForBundle (NSBundle *_Nullable bundle=nil, NSProcessInfo *_Nullable processInfoOrNil=nil)
 
NSNumber *_Nullable FLTEnableWideGamutFromBundle (NSBundle *_Nullable bundle, NSBundle *_Nullable mainBundle)
 

Function Documentation

◆ FLTDefaultSettingsForBundle()

NS_ASSUME_NONNULL_BEGIN flutter::Settings FLTDefaultSettingsForBundle ( NSBundle *_Nullable  bundle = nil,
NSProcessInfo *_Nullable  processInfoOrNil = nil 
)

◆ FLTEnableWideGamutFromBundle()

NSNumber *_Nullable FLTEnableWideGamutFromBundle ( NSBundle *_Nullable  bundle,
NSBundle *_Nullable  mainBundle 
)

Returns the value of the FLTEnableWideGamut key from the given bundle, falling back to the main bundle if not found in the first. If both bundles are the same object, the value is read once.

Definition at line 42 of file FlutterDartProject.mm.

43 {
44 NSNumber* nsEnableWideGamut = [bundle objectForInfoDictionaryKey:@"FLTEnableWideGamut"];
45 if (nsEnableWideGamut == nil && bundle != mainBundle) {
46 nsEnableWideGamut = [mainBundle objectForInfoDictionaryKey:@"FLTEnableWideGamut"];
47 }
48 return nsEnableWideGamut;
49}

Referenced by FlutterDartProject::defaultBundleIdentifier.