#import <FlutterView.h>
Definition at line 34 of file FlutterView.h.
◆ initWithCoder:
- (instancetype) initWithCoder: |
|
(NSCoder*) |
NS_UNAVAILABLE |
|
Definition at line 29 of file FlutterView.mm.
30 NSAssert(NO,
@"FlutterView must initWithDelegate");
◆ initWithDelegate:opaque:enableWideGamut:
- (instancetype) initWithDelegate: |
|
(id<FlutterViewEngineDelegate>) |
delegate |
opaque: |
|
(BOOL) |
opaque |
enableWideGamut: |
|
(BOOL) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
Definition at line 65 of file FlutterView.mm.
65 :(id<FlutterViewEngineDelegate>)delegate
67 enableWideGamut:(BOOL)isWideGamutEnabled {
68 if (delegate == nil) {
69 NSLog(
@"FlutterView delegate was nil.");
73 self = [
super initWithFrame:CGRectNull];
77 _isWideGamutEnabled = isWideGamutEnabled;
78 self.layer.opaque = opaque;
84 self.backgroundColor = UIColor.clearColor;
◆ initWithFrame:
- (instancetype) initWithFrame: |
|
(CGRect) |
NS_UNAVAILABLE |
|
Definition at line 24 of file FlutterView.mm.
25 NSAssert(NO,
@"FlutterView must initWithDelegate");
◆ NS_UNAVAILABLE [1/2]
+ (instancetype) NS_UNAVAILABLE |
|
|
|
◆ NS_UNAVAILABLE [2/2]
- (instancetype) NS_UNAVAILABLE |
|
|
|
◆ pixelFormat
- (MTLPixelFormat) pixelFormat |
|
|
|
Definition at line 41 of file FlutterView.mm.
42 if ([
self.layer isKindOfClass:NSClassFromString(
@"CAMetalLayer")]) {
45 #pragma clang diagnostic push
46 #pragma clang diagnostic ignored "-Wunguarded-availability-new"
47 CAMetalLayer* layer = (CAMetalLayer*)
self.layer;
48 return layer.pixelFormat;
50 return MTLPixelFormatBGRA8Unorm;
◆ screen
Definition at line 34 of file FlutterView.mm.
35 if (@available(iOS 13.0, *)) {
36 return self.window.windowScene.screen;
38 return UIScreen.mainScreen;
◆ forceSoftwareRendering
- (BOOL) forceSoftwareRendering |
|
readwritenonatomicassign |
The documentation for this class was generated from the following files: