Flutter Engine
 
Loading...
Searching...
No Matches
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(nonatomic, strong, nullable) UIWindow* window;
31
32/**
33 * The `FlutterPluginRegistrant` that will be used when FlutterViewControllers
34 * are instantiated from nibs.
35 *
36 * The `FlutterAppDelegate` itself can be passed in without creating a retain
37 * cycle.
38 *
39 * This was introduced to help users migrate code from the FlutterAppDelegate
40 * when UISceneDelegate was adopted. Using
41 * FlutterViewController.pluginRegistrant should be preferred since it doesn't
42 * rely on the FlutterAppDelegate.
43 */
44@property(nonatomic, strong, nullable) NSObject<FlutterPluginRegistrant>* pluginRegistrant;
45
46@end
47
48#endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_HEADERS_FLUTTERAPPDELEGATE_H_
#define FLUTTER_DARWIN_EXPORT
GLFWwindow * window
Definition main.cc:60
NSObject< FlutterPluginRegistrant > * pluginRegistrant