#import <FlutterView.h>
Definition at line 32 of file FlutterView.h.
◆ initWithCoder:
| - (instancetype) initWithCoder: |
|
(NSCoder*) |
NS_UNAVAILABLE |
|
Definition at line 16 of file FlutterView.mm.
34 NSAssert(NO,
@"FlutterView must initWithDelegate");
◆ initWithDelegate:opaque:enableWideGamut:
| - (instancetype) initWithDelegate: |
|
(id<FlutterViewEngineDelegate>) |
delegate |
| opaque: |
|
(BOOL) |
opaque |
| enableWideGamut: |
|
(BOOL) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
Definition at line 16 of file FlutterView.mm.
68 :(id<FlutterViewEngineDelegate>)delegate
70 enableWideGamut:(BOOL)isWideGamutEnabled {
71 if (delegate == nil) {
72 NSLog(
@"FlutterView delegate was nil.");
76 self = [
super initWithFrame:CGRectNull];
80 _isWideGamutEnabled = isWideGamutEnabled;
81 self.layer.opaque = opaque;
◆ initWithFrame:
| - (instancetype) initWithFrame: |
|
(CGRect) |
NS_UNAVAILABLE |
|
Definition at line 16 of file FlutterView.mm.
29 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 16 of file FlutterView.mm.
43 if ([
self.layer isKindOfClass:[CAMetalLayer
class]]) {
46 #pragma clang diagnostic push
47 #pragma clang diagnostic ignored "-Wunguarded-availability-new"
48 CAMetalLayer* layer = (CAMetalLayer*)
self.layer;
49 return layer.pixelFormat;
51 return MTLPixelFormatBGRA8Unorm;
◆ screen
Definition at line 16 of file FlutterView.mm.
39 return self.window.windowScene.screen;
The documentation for this class was generated from the following files: