Flutter iOS Embedder
FlutterOverlayView.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTEROVERLAYVIEW_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTEROVERLAYVIEW_H_
7 
8 #include <Metal/Metal.h>
9 #include <UIKit/UIKit.h>
10 
11 /// UIViews that are used by |FlutterPlatformViews| to present Flutter
12 /// rendering on top of system compositor rendering (ex. a web view).
13 ///
14 /// When there is a view composited by the system compositor within a Flutter
15 /// view hierarchy, instead of rendering into a single render target, Flutter
16 /// renders into multiple render targets (depending on the number of
17 /// interleaving levels between Flutter & non-Flutter contents). While the
18 /// FlutterView contains the backing store for the root render target, the
19 /// FlutterOverlay view contains the backing stores for the rest. The overlay
20 /// views also handle touch propagation and the like for touches that occurs
21 /// either on overlays or otherwise may be intercepted by the platform views.
22 @interface FlutterOverlayView : UIView
23 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
24 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
25 
26 - (instancetype)init NS_DESIGNATED_INITIALIZER;
27 - (instancetype)initWithContentsScale:(CGFloat)contentsScale
28  pixelFormat:(MTLPixelFormat)pixelFormat;
29 
30 @end
31 
32 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTEROVERLAYVIEW_H_
initWithFrame
instancetype initWithFrame
Definition: FlutterTextInputPlugin.h:172
-[FlutterOverlayView NS_DESIGNATED_INITIALIZER]
instancetype NS_DESIGNATED_INITIALIZER()
initWithCoder
instancetype initWithCoder
Definition: FlutterTextInputPlugin.h:171
FlutterOverlayView
Definition: FlutterOverlayView.h:22