Classes

The following classes are available globally.

  • 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.

    See more

    Declaration

    Objective-C

    @interface FlutterAppDelegate
        : UIResponder <UIApplicationDelegate, FlutterPluginRegistry,
                       FlutterAppLifeCycleProvider>
  • Deprecated

    FlutterEngine should be used rather than FlutterHeadlessDartRunner

    The FlutterHeadlessDartRunner runs Flutter Dart code with a null rasterizer, and no native drawing surface. It is appropriate for use in running Dart code e.g. in the background from a plugin.

    Most callers should prefer using FlutterEngine directly; this interface exists for legacy support.

    See more

    Declaration

    Objective-C

    
    @interface FlutterHeadlessDartRunner : FlutterEngine
  • A UIViewController implementation for Flutter views.

    Dart execution, channel communication, texture registration, and plugin registration are all handled by FlutterEngine. Calls on this class to those members all proxy through to the FlutterEngine attached FlutterViewController.

    A FlutterViewController can be initialized either with an already-running FlutterEngine, or it can be initialized with a FlutterDartProject that will be used to spin up a new FlutterEngine. Developers looking to present and hide FlutterViewControllers in native iOS applications will usually want to maintain the FlutterEngine instance so as not to lose Dart-related state and asynchronous tasks when navigating back and forth between a FlutterViewController and other UIViewControllers.

    See more

    Declaration

    Objective-C

    @interface FlutterViewController
        : UIViewController <FlutterBinaryMessenger, FlutterTextureRegistry,
                            FlutterPluginRegistry>