#include <FlutterView.h>
Instance Methods | |
| (std::optional< NSSize >) | - minimumViewSize: |
| (std::optional< NSSize >) | - maximumViewSize: |
| (void) | - viewDidUpdateContents:withSize: |
Interface that facilitates process of sizing the FlutterView to its content. It is used to determine the content constraints and to notify the view container about the size change so that the parent view can be resized (and repositioned) accordingly.
Definition at line 24 of file FlutterView.h.
| - (optional< NSSize > FlutterViewSizingDelegate-)p: | (nonnull FlutterView *) | view |
When view should be sized to content, this method should return the maximum logical size of the view. For views that are not sized to content, this method should return std::nullopt.
| - (optional< NSSize > FlutterViewSizingDelegate-)p: | (nonnull FlutterView *) | view |
When view should be sized to content, this method should return the minimum logical size of the view. For views that are not sized to content, will return std::nullopt;
| - (void) viewDidUpdateContents: | (nonnull FlutterView *) | view | |
| withSize: | (NSSize) | newSize | |
Called when the view's size changes. The container should update its layout to accommodate the new size.