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 30 of file FlutterOverlayView.mm.

30  :(NSCoder*)aDecoder {
31  @throw([NSException exceptionWithName:@"FlutterOverlayView must init or initWithContentsScale"
32  reason:nil
33  userInfo:nil]);
34 }

◆ initWithContentsScale:()

- (instancetype) initWithContentsScale: (CGFloat)  contentsScale

Definition at line 48 of file FlutterOverlayView.mm.

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

◆ initWithFrame:()

- (instancetype) initWithFrame: (CGRect)  NS_UNAVAILABLE

Definition at line 24 of file FlutterOverlayView.mm.

24  :(CGRect)frame {
25  @throw([NSException exceptionWithName:@"FlutterOverlayView must init or initWithContentsScale"
26  reason:nil
27  userInfo:nil]);
28 }



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