| 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 #include <memory>
12
13 #include "flutter/fml/memory/weak_ptr.h"
14 #include "flutter/shell/common/shell.h"
15 #import "flutter/shell/platform/darwin/ios/ios_surface.h"
16 #include "fml/platform/darwin/cf_utils.h"
17
18 #import "flutter/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h"
19
20 /// UIViews that are used by |FlutterPlatformViews| to present Flutter
21 /// rendering on top of system compositor rendering (ex. a web view).
22 ///
23 /// When there is a view composited by the system compositor within a Flutter
24 /// view hierarchy, instead of rendering into a single render target, Flutter
25 /// renders into multiple render targets (depending on the number of
26 /// interleaving levels between Flutter & non-Flutter contents). While the
27 /// FlutterView contains the backing store for the root render target, the
28 /// FlutterOverlay view contains the backing stores for the rest. The overlay
29 /// views also handle touch propagation and the like for touches that occurs
30 /// either on overlays or otherwise may be intercepted by the platform views.
31 @interface FlutterOverlayView : UIView
32 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
33 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
34
35 - (instancetype)init NS_DESIGNATED_INITIALIZER;
36 - (instancetype)initWithContentsScale:(CGFloat)contentsScale
37 pixelFormat:(MTLPixelFormat)pixelFormat;
38
39 @end
40
41 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTEROVERLAYVIEW_H_
initWithFrame
instancetype initWithFrame
Definition: FlutterTextInputPlugin.h:167
ios_surface.h
-[FlutterOverlayView NS_DESIGNATED_INITIALIZER]
instancetype NS_DESIGNATED_INITIALIZER()
FlutterPlatformViews_Internal.h
initWithCoder
instancetype initWithCoder
Definition: FlutterTextInputPlugin.h:166
FlutterOverlayView
Definition: FlutterOverlayView.h:31