forked from firka/flutter
some drive-by docs while I was reading the embedding classes (flutter/engine#9341)
This commit is contained in:
@@ -110,6 +110,9 @@ public class FlutterEngine implements LifecycleOwner {
|
||||
/**
|
||||
* Constructs a new {@code FlutterEngine}.
|
||||
*
|
||||
* {@code FlutterMain.startInitialization} must be called before constructing a {@code FlutterEngine}
|
||||
* to load the native libraries needed to attach to JNI.
|
||||
*
|
||||
* A new {@code FlutterEngine} does not execute any Dart code automatically. See
|
||||
* {@link #getDartExecutor()} and {@link DartExecutor#executeDartEntrypoint(DartExecutor.DartEntrypoint)}
|
||||
* to begin executing Dart code within this {@code FlutterEngine}.
|
||||
|
||||
@@ -29,16 +29,18 @@ extern NSNotificationName const FlutterSemanticsUpdateNotification;
|
||||
/**
|
||||
* 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.
|
||||
* 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 `UIViewController`s.
|
||||
* A FlutterViewController can be initialized either with an already-running `FlutterEngine` via
|
||||
* the `initWithEngine:` initializer, or it can be initialized with a `FlutterDartProject` that
|
||||
* will be used to implicitly spin up a new `FlutterEngine`. Creating a `FlutterEngine before
|
||||
* showing a `FlutterViewController` can be used to pre-initialize the Dart VM and to prepare the
|
||||
* isolate in order to reduce the latency to the first rendered frame. Holding a `FlutterEngine`
|
||||
* independently of FlutterViewControllers can also be used to not to lose Dart-related state and
|
||||
* asynchronous tasks when navigating back and forth between a FlutterViewController and other
|
||||
* `UIViewController`s.
|
||||
*/
|
||||
FLUTTER_EXPORT
|
||||
@interface FlutterViewController : UIViewController <FlutterTextureRegistry, FlutterPluginRegistry>
|
||||
|
||||
Reference in New Issue
Block a user