| Flutter iOS Embedder |

UIViewController+FlutterScreenAndSceneIfLoaded.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_UIVIEWCONTROLLER_FLUTTERSCREENANDSCENEIFLOADED_H_
6 #define FLUTTER_UIVIEWCONTROLLER_FLUTTERSCREENANDSCENEIFLOADED_H_
7
8 #import <UIKit/UIKit.h>
9
10 @interface UIViewController (FlutterScreenAndSceneIfLoaded)
11
12 /// Returns a UIWindowScene if the UIViewController's view is loaded, and nil otherwise.
13 - (UIWindowScene*)flutterWindowSceneIfViewLoaded API_AVAILABLE(ios(13.0));
14
15 /// Before iOS 13, returns the main screen; After iOS 13, returns the screen the UIViewController is
16 /// attached to if its view is loaded, and nil otherwise.
17 - (UIScreen*)flutterScreenIfViewLoaded;
18
19 @end
20
21 #endif // FLUTTER_UIVIEWCONTROLLER_FLUTTERSCREENANDSCENEIFLOADED_H_
API_AVAILABLE
UITextSmartQuotesType smartQuotesType API_AVAILABLE(ios(11.0))
UIViewController(FlutterScreenAndSceneIfLoaded)
Definition: UIViewController+FlutterScreenAndSceneIfLoaded.h:10