-
Notifications
You must be signed in to change notification settings - Fork 6k
Rename default views to implicit views #43364
Changes from 4 commits
3630458
3d86303
a293b8e
7699ee8
57e705e
a71e5b5
bc67089
2aaabb8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,11 +36,30 @@ FLUTTER_DARWIN_EXPORT | |
| @property(nonnull, readonly) id<FlutterTextureRegistry> textures; | ||
|
|
||
| /** | ||
| * The default view displaying Flutter content. | ||
| * The view displaying Flutter content. | ||
| * | ||
| * This method may return |nil|, for instance in a headless environment. | ||
| * Currently Flutter only supports one view, and this is the view. | ||
| * | ||
| * The default view is a special view operated by single-view APIs. | ||
| * Flutter plans to support multiple views in the future. Although single-view | ||
|
||
| * APIs will eventually be replaced by their multi-view variants, during the | ||
| * deprecation period, the single-view APIs will coexist with and work with the | ||
| * multi-view APIs as if the other views don't exist. To achieve this, | ||
| * all behaviors of "the single view" (which is called "the implicit view") are | ||
| * preserved, allowing legacy single-view APIs to continue working, while | ||
| * new-style views created by new ways must be operated by the upcoming | ||
| * multi-view APIs. | ||
| * | ||
| * Plugins written for a single view can keep operating on this view and expect | ||
| * unchanged behavior for the implicit view. This includes that: | ||
| * | ||
| * - The first view controller attached to the engine will be linked to the | ||
| * implicit view. | ||
dkwingsmt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * - Single-view Flutter APIs will operate the implicit view. | ||
| * | ||
| * This method may return |nil| if the view is not assigned. In single-view | ||
| * apps, this means that the app is running headlessly. In multi-view apps, | ||
| * this means that the compatible mode is disabled, or that the compatible mode | ||
dkwingsmt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * is on but no view controller has been attached to the engine yet. | ||
| */ | ||
| @property(nullable, readonly) NSView* view; | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.