Flutter Engine
FlutterAppDelegate Class Reference

#import <FlutterAppDelegate.h>

Inheritance diagram for FlutterAppDelegate:
AppDelegate

Protected Attributes

 __pad0__: UIResponder <UIApplicationDelegate
 
 FlutterPluginRegistry
 

Properties

FlutterAppLifeCycleProvider UIWindow * window
 
IBOutlet NSMenu * applicationMenu
 
IBOutlet NSWindow * mainFlutterWindow
 

Detailed Description

UIApplicationDelegate subclass for simple apps that want default behavior.

This class implements the following behaviors:

  • Status bar touches are forwarded to the key window's root view FlutterViewController, in order to trigger scroll to top.
  • Keeps the Flutter connection open in debug mode when the phone screen locks.

App delegates for Flutter applications are not required to inherit from this class. Developers of custom app delegate classes should copy and paste code as necessary from FlutterAppDelegate.mm.

NSApplicationDelegate subclass for simple apps that want default behavior.

This class implements the following behaviors:

  • Updates the application name of items in the application menu to match the name in the app's Info.plist, assuming it is set to APP_NAME initially. |applicationMenu| must be set before the application finishes launching for this to take effect.
  • Updates the main Flutter window's title to match the name in the app's Info.plist. |mainFlutterWindow| must be set before the application finishes launching for this to take effect.

App delegates for Flutter applications are not required to inherit from this class. Developers of custom app delegate classes should copy and paste code as necessary from FlutterAppDelegate.mm.

Definition at line 27 of file FlutterAppDelegate.h.

Member Data Documentation

◆ __pad0__

- __pad0__
protected

Definition at line 28 of file FlutterAppDelegate.h.

◆ FlutterPluginRegistry

- FlutterPluginRegistry
protected

Definition at line 28 of file FlutterAppDelegate.h.

Property Documentation

◆ applicationMenu

- (IBOutlet NSMenu*) applicationMenu
readwritenonatomicweak

The application menu in the menu bar.

Definition at line 33 of file FlutterAppDelegate.h.

◆ mainFlutterWindow

- (IBOutlet NSWindow*) mainFlutterWindow
readwritenonatomicweak

The primary application window containg a FlutterViewController. This is primarily intended for use in single-window applications.

Definition at line 39 of file FlutterAppDelegate.h.

◆ window

- (FlutterAppLifeCycleProvider UIWindow*) window
readwritenonatomicstrong

Definition at line 28 of file FlutterAppDelegate.h.


The documentation for this class was generated from the following file: