| 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
36 + (BOOL)isFlutterDeepLinkingEnabled;
37
38 @end
39
40 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERSHAREDAPPLICATION_H_
kRestorationStateAppModificationKey
NSString *const kRestorationStateAppModificationKey
Definition: FlutterSharedApplication.mm:12
FlutterSharedApplication
Definition: FlutterSharedApplication.h:13
FlutterSharedApplication::application
UIApplication * application
Definition: FlutterSharedApplication.h:27
FlutterSharedApplication::hasSceneDelegate
BOOL hasSceneDelegate
Definition: FlutterSharedApplication.h:32
FlutterSharedApplication::lastAppModificationTime
int64_t lastAppModificationTime
Definition: FlutterSharedApplication.h:34
FlutterSharedApplication::isAppExtension
BOOL isAppExtension
Definition: FlutterSharedApplication.h:17
FlutterSharedApplication::isAvailable
BOOL isAvailable
Definition: FlutterSharedApplication.h:22
+[FlutterSharedApplication isFlutterDeepLinkingEnabled]
BOOL isFlutterDeepLinkingEnabled()
Definition: FlutterSharedApplication.mm:60