Flutter iOS Embedder
FlutterSharedApplication.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_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERSHAREDAPPLICATION_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERSHAREDAPPLICATION_H_
7 
8 #import <UIKit/UIKit.h>
9 
10 extern NSString* const kRestorationStateAppModificationKey;
11 
12 @interface FlutterSharedApplication : NSObject
13 
14 /**
15  * Returns YES if the main bundle is an iOS App Extension.
16  */
17 @property(class, nonatomic, readonly) BOOL isAppExtension;
18 
19 /**
20  * Returns YES if the UIApplication is available. UIApplication is not available for App Extensions.
21  */
22 @property(class, nonatomic, readonly) BOOL isAvailable;
23 
24 /**
25  * Returns the `UIApplication.sharedApplication` is available. Otherwise returns nil.
26  */
27 @property(class, nonatomic, readonly) UIApplication* application;
28 
29 /**
30  * Returns YES if any connected UIScene in the UIApplication has a delegate.
31  */
32 @property(class, nonatomic, readonly) BOOL hasSceneDelegate;
33 
34 @property(class, nonatomic, readonly) int64_t lastAppModificationTime;
35 
37 
38 @end
39 
40 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERSHAREDAPPLICATION_H_
NSString *const kRestorationStateAppModificationKey