• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_FLUTTERAPPDELEGATE_H_
6 #define FLUTTER_FLUTTERAPPDELEGATE_H_
7 
8 #import <UIKit/UIKit.h>
9 
10 #include "FlutterMacros.h"
11 #include "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  */
26 FLUTTER_EXPORT
27 @interface FlutterAppDelegate
28     : UIResponder <UIApplicationDelegate, FlutterPluginRegistry, FlutterAppLifeCycleProvider>
29 
30 @property(strong, nonatomic) UIWindow* window;
31 
32 @end
33 
34 #endif  // FLUTTER_FLUTTERDARTPROJECT_H_
35