| 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 @interface FlutterSharedApplication : NSObject
11
12 /**
13 * Returns YES if the main bundle is an iOS App Extension.
14 */
15 @property(class, nonatomic, readonly) BOOL isAppExtension;
16
17 /**
18 * Returns YES if the UIApplication is available. UIApplication is not available for App Extensions.
19 */
20 @property(class, nonatomic, readonly) BOOL isAvailable;
21
22 /**
23 * Returns the `UIApplication.sharedApplication` is available. Otherwise returns nil.
24 */
25 @property(class, nonatomic, readonly) UIApplication* application;
26
27 @end
28
29 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERSHAREDAPPLICATION_H_
FlutterSharedApplication
Definition: FlutterSharedApplication.h:11
FlutterSharedApplication::application
UIApplication * application
Definition: FlutterSharedApplication.h:25
FlutterSharedApplication::isAppExtension
BOOL isAppExtension
Definition: FlutterSharedApplication.h:15
FlutterSharedApplication::isAvailable
BOOL isAvailable
Definition: FlutterSharedApplication.h:20