Flutter iOS Embedder
FlutterView Class Reference

#import <FlutterView.h>

Inheritance diagram for FlutterView:

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(instancetype) - initWithFrame:
 
(instancetype) - initWithCoder:
 
(instancetype) - initWithDelegate:opaque:enableWideGamut:
 

Class Methods

(instancetype) + NS_UNAVAILABLE
 

Properties

BOOL forceSoftwareRendering
 

Detailed Description

Definition at line 38 of file FlutterView.h.

Method Documentation

◆ initWithCoder:

- (instancetype) initWithCoder: (NSCoder*)  NS_UNAVAILABLE

Definition at line 34 of file FlutterView.mm.

34  :(NSCoder*)aDecoder {
35  NSAssert(NO, @"FlutterView must initWithDelegate");
36  return nil;
37 }

◆ initWithDelegate:opaque:enableWideGamut:

- (instancetype) initWithDelegate: (id<FlutterViewEngineDelegate>)  delegate
opaque: (BOOL)  opaque
enableWideGamut: (BOOL)  NS_DESIGNATED_INITIALIZER 

Definition at line 59 of file FlutterView.mm.

59  :(id<FlutterViewEngineDelegate>)delegate
60  opaque:(BOOL)opaque
61  enableWideGamut:(BOOL)isWideGamutEnabled {
62  if (delegate == nil) {
63  NSLog(@"FlutterView delegate was nil.");
64  [self release];
65  return nil;
66  }
67 
68  self = [super initWithFrame:CGRectNull];
69 
70  if (self) {
71  _delegate = delegate;
72  _isWideGamutEnabled = isWideGamutEnabled;
73  self.layer.opaque = opaque;
74 
75  // This line is necessary. CoreAnimation(or UIKit) may take this to do
76  // something to compute the final frame presented on screen, if we don't set this,
77  // it will make it take long time for us to take next CAMetalDrawable and will
78  // cause constant junk during rendering.
79  self.backgroundColor = UIColor.clearColor;
80  }
81 
82  return self;
83 }

References _isWideGamutEnabled.

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect)  NS_UNAVAILABLE

Definition at line 29 of file FlutterView.mm.

29  :(CGRect)frame {
30  NSAssert(NO, @"FlutterView must initWithDelegate");
31  return nil;
32 }

◆ NS_UNAVAILABLE [1/2]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/2]

+ (instancetype) NS_UNAVAILABLE

Property Documentation

◆ forceSoftwareRendering

- (BOOL) forceSoftwareRendering
readwritenonatomicassign

Definition at line 50 of file FlutterView.h.


The documentation for this class was generated from the following files:
_isWideGamutEnabled
BOOL _isWideGamutEnabled
Definition: FlutterView.mm:19