Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
<FlutterViewSizingDelegate> Protocol Reference

#include <FlutterView.h>

Inheritance diagram for <FlutterViewSizingDelegate>:
FlutterWindowOwner

Instance Methods

(std::optional< NSSize >) - minimumViewSize:
 
(std::optional< NSSize >) - maximumViewSize:
 
(void) - viewDidUpdateContents:withSize:
 

Detailed Description

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.

Method Documentation

◆ maximumViewSize:

- (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.

◆ minimumViewSize:

- (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;

◆ viewDidUpdateContents:withSize:

- (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.


The documentation for this protocol was generated from the following file: