Skip to content

Commit 626cfa2

Browse files
authored
[iPhone Duo] update uiscenedelegate documentation for scene geometry change (#14012)
This accompanies this change: flutter/flutter#195508 On iPhone Duo, when switching between inner/outer screens, we want to make sure the display info is correctly updated to the dart side. ## Presubmit checklist - [x] If you are unwilling, or unable, to sign the CLA, even for a _tiny_, one-word PR, please file an issue instead of a PR. - [ ] If this PR is not meant to land until a future stable release, mark it as draft with an explanation. - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style)—for example, it doesn't use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first-person pronouns). - [ ] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
1 parent 2129b7a commit 626cfa2

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎sites/docs/src/content/release/breaking-changes/uiscenedelegate.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,17 @@ forward scene lifecycle events to Flutter.
532532
+ completionHandler: completionHandler
533533
+ )
534534
}
535+
536+
+ @available(iOS 26.0, *)
537+
+ func windowScene(
538+
+ _ windowScene: UIWindowScene,
539+
+ didUpdateEffectiveGeometry previousEffectiveGeometry: UIWindowScene.Geometry
540+
+ ) {
541+
+ sceneLifeCycleDelegate.windowScene(
542+
+ windowScene,
543+
+ didUpdateEffectiveGeometry: previousEffectiveGeometry
544+
+ )
545+
+ }
535546
}
536547
```
537548

@@ -599,6 +610,13 @@ forward scene lifecycle events to Flutter.
599610
+ [self.sceneLifeCycleDelegate windowScene:windowScene
600611
+ performActionForShortcutItem:shortcutItem completionHandler:completionHandler];
601612
}
613+
614+
+ - (void)windowScene:(UIWindowScene*)windowScene
615+
+ didUpdateEffectiveGeometry:(UIWindowSceneGeometry*)previousEffectiveGeometry
616+
+ API_AVAILABLE(ios(26.0)) {
617+
+ [self.sceneLifeCycleDelegate windowScene:windowScene
618+
+ didUpdateEffectiveGeometry:previousEffectiveGeometry];
619+
+ }
602620
```
603621

604622
</Tab>

0 commit comments

Comments
 (0)