#import <FlutterView.h>
Instance Methods | |
(nullable instancetype) | - initWithMTLDevice:commandQueue:delegate:threadSynchronizer:viewId: |
(nullable instancetype) | - initWithFrame:pixelFormat: |
(nonnull instancetype) | - initWithFrame: |
(nullable instancetype) | - initWithCoder: |
(nonnull instancetype) | - NS_UNAVAILABLE |
(void) | - setBackgroundColor: |
Properties | |
FlutterSurfaceManager * | surfaceManager |
View capable of acting as a rendering target and input source for the Flutter engine.
Definition at line 48 of file FlutterView.h.
- (nullable instancetype) initWithCoder: | (nonnull NSCoder *) | NS_UNAVAILABLE |
- (nonnull instancetype) initWithFrame: | (NSRect) | NS_UNAVAILABLE |
- (nullable instancetype) initWithFrame: | (NSRect) | frameRect | |
pixelFormat: | (nullable NSOpenGLPixelFormat *) | NS_UNAVAILABLE | |
- (nullable instancetype) initWithMTLDevice: | (nonnull id< MTLDevice >) | device | |
commandQueue: | (nonnull id< MTLCommandQueue >) | commandQueue | |
delegate: | (nonnull id< FlutterViewDelegate >) | delegate | |
threadSynchronizer: | (nonnull FlutterThreadSynchronizer *) | threadSynchronizer | |
viewId: | (int64_t) | NS_DESIGNATED_INITIALIZER | |
Initialize a FlutterView that will be rendered to using Metal rendering apis.
- (nonnull instancetype) NS_UNAVAILABLE |
- (void) setBackgroundColor: | (nonnull NSColor *) | color |
By default, the FlutterSurfaceManager
creates two layers to manage Flutter content, the content layer and containing layer. To set the native background color, onto which the Flutter content is drawn, call this method with the NSColor which you would like to override the default, black background color with.
|
readnonatomicassign |
Returns SurfaceManager for this view. SurfaceManager is responsible for providing and presenting render surfaces.
Definition at line 69 of file FlutterView.h.
Referenced by flutter::FlutterCompositor::CreateBackingStore(), and flutter::FlutterCompositor::Present().