FlutterEngineGroup

@interface FlutterEngineGroup : NSObject

Represents a collection of FlutterEngines who share resources which allows them to be created with less time const and occupy less memory than just creating multiple FlutterEngines.

Deleting a FlutterEngineGroup doesn’t invalidate existing FlutterEngines, but it eliminates the possibility to create more FlutterEngines in that group.

Warning

This class is a work-in-progress and may change.
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Initialize a new FlutterEngineGroup.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithName:(nonnull NSString *)name
                                 project:(nullable FlutterDartProject *)project;

    Parameters

    name

    The name that will present in the threads shared across the engines in this group.

    project

    The FlutterDartProject that all FlutterEngines in this group will be executing.

  • Creates a running FlutterEngine that shares components with this group.

    See

    FlutterEngineGroup

    Declaration

    Objective-C

    - (nonnull FlutterEngine *)
        makeEngineWithEntrypoint:(nullable NSString *)entrypoint
                      libraryURI:(nullable NSString *)libraryURI;