Flutter Engine
FlutterOverlayView Class Reference

#import <FlutterOverlayView.h>

Inheritance diagram for FlutterOverlayView:

Instance Methods

(instancetype) - initWithFrame:
(instancetype) - initWithCoder:
(instancetype) - initWithContentsScale:

Detailed Description

UIViews that are used by |FlutterPlatformViews| to present Flutter rendering on top of system compositor rendering (ex. a web view).

When there is a view composited by the system compositor within a Flutter view hierarchy, instead of rendering into a single render target, Flutter renders into multiple render targets (depending on the number of interleaving levels between Flutter & non-Flutter contents). While the FlutterView contains the backing store for the root render target, the FlutterOverlay view contains the backing stores for the rest. The overlay views also handle touch propagation and the like for touches that occurs either on overlays or otherwise may be intercepted by the platform views.

Definition at line 31 of file FlutterOverlayView.h.

Method Documentation

◆ initWithCoder:()

- (instancetype) initWithCoder: (NSCoder*)  NS_UNAVAILABLE

Definition at line 29 of file FlutterOverlayView.mm.

29  :(NSCoder*)aDecoder {
30  NSAssert(NO, @"FlutterOverlayView must init or initWithContentsScale");
31  return nil;
32 }

◆ initWithContentsScale:()

- (instancetype) initWithContentsScale: (CGFloat)  contentsScale

Definition at line 46 of file FlutterOverlayView.mm.

46  :(CGFloat)contentsScale {
47  self = [self init];
49  if ([self.layer isKindOfClass:NSClassFromString(@"CAEAGLLayer")] ||
50  [self.layer isKindOfClass:NSClassFromString(@"CAMetalLayer")]) {
51  self.layer.allowsGroupOpacity = NO;
52  self.layer.contentsScale = contentsScale;
53  self.layer.rasterizationScale = contentsScale;
54  }
56  return self;
57 }

◆ initWithFrame:()

- (instancetype) initWithFrame: (CGRect)  NS_UNAVAILABLE

Definition at line 24 of file FlutterOverlayView.mm.

24  :(CGRect)frame {
25  NSAssert(NO, @"FlutterOverlayView must init or initWithContentsScale");
26  return nil;
27 }



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