#include <FlutterView.h>
Instance Methods | |
| (instancetype) | - NS_UNAVAILABLE |
| (instancetype) | - initWithFrame: |
| (instancetype) | - initWithCoder: |
| (instancetype) | - initWithDelegate:opaque:enableWideGamut: |
| (UIScreen *) | - screen |
| (MTLPixelFormat) | - pixelFormat |
| (void) | - setIntrinsicContentSize: |
| (void) | - resetIntrinsicContentSize |
| (nullable instancetype) | - initWithMTLDevice:commandQueue:delegate:viewIdentifier:enableWideGamut: |
| (nullable instancetype) | - initWithFrame:pixelFormat: |
| (nonnull instancetype) | - initWithFrame: |
| (nullable instancetype) | - initWithCoder: |
| (nonnull instancetype) | - NS_UNAVAILABLE |
| (void) | - setBackgroundColor: |
| (void) | - didUpdateMouseCursor: |
| (void) | - shutDown |
| (void) | - constraintsDidChange |
Class Methods | |
| (instancetype) | + NS_UNAVAILABLE |
Properties | |
| BOOL | autoResizable |
| FlutterSurfaceManager * | surfaceManager |
| id< FlutterViewSizingDelegate > | sizingDelegate |
| BOOL | sizedToContents |
| CGSize | minimumContentSize |
| CGSize | maximumContentSize |
View capable of acting as a rendering target and input source for the Flutter engine.
Definition at line 49 of file FlutterView.h.
| - (void) constraintsDidChange |
Informs the view that layout constraints have changed. The view should send reconfigure event to the engine so that new content matches the constraints.
Definition at line 18 of file FlutterView.mm.
| - (void) didUpdateMouseCursor: | (nonnull NSCursor *) | cursor |
| - (nullable instancetype) initWithCoder: | (nonnull NSCoder *) | NS_UNAVAILABLE |
| - (instancetype) initWithCoder: | (NSCoder*) | NS_UNAVAILABLE |
Definition at line 24 of file FlutterView.mm.
| - (instancetype) initWithDelegate: | (id<FlutterViewEngineDelegate>) | delegate | |
| opaque: | (BOOL) | opaque | |
| enableWideGamut: | (BOOL) | NS_DESIGNATED_INITIALIZER | |
Definition at line 24 of file FlutterView.mm.
| - (instancetype) initWithFrame: | (CGRect) | NS_UNAVAILABLE |
Definition at line 24 of file FlutterView.mm.
| - (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 | |
| viewIdentifier: | (FlutterViewIdentifier) | viewIdentifier | |
| enableWideGamut: | (BOOL) | NS_DESIGNATED_INITIALIZER | |
Initialize a FlutterView that will be rendered to using Metal rendering apis.
| - (instancetype) NS_UNAVAILABLE |
| + (instancetype) NS_UNAVAILABLE |
| - (nonnull instancetype) NS_UNAVAILABLE |
| - (MTLPixelFormat) pixelFormat |
Definition at line 24 of file FlutterView.mm.
| - (void) resetIntrinsicContentSize |
A method that resets and recalculates the instrinsic content size Currently called when the device orientation changes.
Definition at line 24 of file FlutterView.mm.
| - (UIScreen *) screen |
Definition at line 24 of file FlutterView.mm.
| - (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.
| - (void) setIntrinsicContentSize: | (CGSize) | size |
A method that sets the instrinsic content size This is used when autoResizable is enabled.
Definition at line 24 of file FlutterView.mm.
| - (void) shutDown |
Called from the controller to unblock resize synchronizer when shutting down.
Definition at line 18 of file FlutterView.mm.
|
readwritenonatomicassign |
Definition at line 74 of file FlutterView.h.
|
readnonatomicassign |
When sized to contents, this property returns the maximum content size. If not sized to contents, this property returns NSZeroSize.
Definition at line 133 of file FlutterView.h.
|
readnonatomicassign |
When sized to contents, this property returns the minimum content size. If not sized to contents, this property returns NSZeroSize.
Definition at line 127 of file FlutterView.h.
|
readnonatomicassign |
Whether this view is sized to contents. If so, resize synchronization will be disabled.
Definition at line 121 of file FlutterView.h.
|
readwritenonatomicweak |
Optional sizing delegate. If set, the view can be sized to its content.
Definition at line 94 of file FlutterView.h.
|
readnonatomicassign |
Returns SurfaceManager for this view. SurfaceManager is responsible for providing and presenting render surfaces.
Definition at line 89 of file FlutterView.h.