Flutter iOS Embedder
FlutterAppDelegate.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_HEADERS_FLUTTERAPPDELEGATE_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_HEADERS_FLUTTERAPPDELEGATE_H_
7 
8 #import <UIKit/UIKit.h>
9 
10 #import "FlutterMacros.h"
11 #import "FlutterPlugin.h"
12 
13 /**
14  * `UIApplicationDelegate` subclass for simple apps that want default behavior.
15  *
16  * This class implements the following behaviors:
17  * * Status bar touches are forwarded to the key window's root view
18  * `FlutterViewController`, in order to trigger scroll to top.
19  * * Keeps the Flutter connection open in debug mode when the phone screen
20  * locks.
21  *
22  * App delegates for Flutter applications are *not* required to inherit from
23  * this class. Developers of custom app delegate classes should copy and paste
24  * code as necessary from FlutterAppDelegate.mm.
25  */
28  : UIResponder <UIApplicationDelegate, FlutterPluginRegistry, FlutterAppLifeCycleProvider>
29 
30 @property(strong, nonatomic) UIWindow* window;
31 
32 @end
33 
34 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_HEADERS_FLUTTERAPPDELEGATE_H_
FlutterMacros.h
FlutterPlugin.h
FlutterAppDelegate::window
FlutterAppLifeCycleProvider UIWindow * window
Definition: FlutterAppDelegate.h:30
FlutterAppDelegate
Definition: FlutterAppDelegate.h:27
FLUTTER_DARWIN_EXPORT
#define FLUTTER_DARWIN_EXPORT
Definition: FlutterMacros.h:14