Flutter Engine
FlutterView Class Reference

#import <FlutterView.h>

Inheritance diagram for FlutterView:

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(instancetype) - initWithFrame:
 
(instancetype) - initWithCoder:
 
(instancetype) - initWithDelegate:opaque:
 
(std::unique_ptr< flutter::IOSSurface >) - createSurface:
 
(nullable instancetype) - initWithFrame:shareContext:reshapeListener:
 
(nullable instancetype) - initWithShareContext:reshapeListener:
 
(nullable instancetype) - initWithFrame:pixelFormat:
 
(nonnull instancetype) - initWithFrame:
 
(nullable instancetype) - initWithCoder:
 
(nonnull instancetype) - NS_UNAVAILABLE
 

Class Methods

(instancetype) + NS_UNAVAILABLE
 

Properties

BOOL forceSoftwareRendering
 

Detailed Description

View capable of acting as a rendering target and input source for the Flutter engine.

Definition at line 26 of file FlutterView.h.

Method Documentation

◆ createSurface:()

- (unique_ptr<) flutter: (std::shared_ptr<flutter::IOSContext>)  context

Definition at line 86 of file FlutterView.mm.

References flutter::IOSSurface::Create(), and TRACE_EVENT0.

86  :
87  (std::shared_ptr<flutter::IOSContext>)ios_context {
89  std::move(ios_context), // context
90  fml::scoped_nsobject<CALayer>{[self.layer retain]}, // layer
91  [_delegate platformViewsController] // platform views controller
92  );
93 }
static std::unique_ptr< IOSSurface > Create(std::shared_ptr< IOSContext > context, fml::scoped_nsobject< CALayer > layer, FlutterPlatformViewsController *platform_views_controller)
Definition: ios_surface.mm:18

◆ initWithCoder:() [1/2]

- (instancetype) initWithCoder: (NSCoder*)  NS_UNAVAILABLE

Definition at line 36 of file FlutterView.mm.

36  :(NSCoder*)aDecoder {
37  @throw([NSException exceptionWithName:@"FlutterView must initWithDelegate"
38  reason:nil
39  userInfo:nil]);
40 }

◆ initWithCoder:() [2/2]

- (nullable instancetype) initWithCoder: (nonnull NSCoder *)  NS_UNAVAILABLE

◆ initWithDelegate:opaque:()

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

Definition at line 42 of file FlutterView.mm.

42  :(id<FlutterViewEngineDelegate>)delegate opaque:(BOOL)opaque {
43  if (delegate == nil) {
44  NSLog(@"FlutterView delegate was nil.");
45  [self release];
46  return nil;
47  }
48 
49  self = [super initWithFrame:CGRectNull];
50 
51  if (self) {
52  _delegate = delegate;
53  self.layer.opaque = opaque;
54  }
55 
56  return self;
57 }

◆ initWithFrame:() [1/2]

- (instancetype) initWithFrame: (CGRect)  NS_UNAVAILABLE

Definition at line 30 of file FlutterView.mm.

30  :(CGRect)frame {
31  @throw([NSException exceptionWithName:@"FlutterView must initWithDelegate"
32  reason:nil
33  userInfo:nil]);
34 }

◆ initWithFrame:() [2/2]

- (nonnull instancetype) initWithFrame: (NSRect)  NS_UNAVAILABLE

◆ initWithFrame:pixelFormat:()

- (nullable instancetype) initWithFrame: (NSRect)  frameRect
pixelFormat: (nullable NSOpenGLPixelFormat *)  NS_UNAVAILABLE 

◆ initWithFrame:shareContext:reshapeListener:()

- (nullable instancetype) initWithFrame: (NSRect)  frame
shareContext: (nonnull NSOpenGLContext *)  shareContext
reshapeListener: (nonnull id< FlutterViewReshapeListener >)  NS_DESIGNATED_INITIALIZER 

◆ initWithShareContext:reshapeListener:()

- (nullable instancetype) initWithShareContext: (nonnull NSOpenGLContext *)  shareContext
reshapeListener: (nonnull id< FlutterViewReshapeListener >)  reshapeListener 

◆ NS_UNAVAILABLE() [1/3]

+ (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE() [2/3]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE() [3/3]

- (nonnull instancetype) NS_UNAVAILABLE

Property Documentation

◆ forceSoftwareRendering

- (BOOL) forceSoftwareRendering
readwritenonatomicassign

The documentation for this class was generated from the following files: