Flutter Engine
The Flutter Engine
|
Classes | |
class | Builder |
Public Member Functions | |
FlutterLoader | flutterLoader () |
DeferredComponentManager | deferredComponentManager () |
ExecutorService | executorService () |
FlutterJNI.Factory | getFlutterJNIFactory () |
Static Public Member Functions | |
static void | setInstance (@NonNull FlutterInjector injector) |
static FlutterInjector | instance () |
static void | reset () |
This class is a simple dependency injector for the relatively thin Android part of the Flutter engine.
This simple solution is used facilitate testability without bringing in heavier app-development centric dependency injection frameworks such as Guice or Dagger2 or spreading construction injection everywhere.
Definition at line 25 of file FlutterInjector.java.
|
inline |
Returns the DeferredComponentManager
instance to use for the Flutter Android engine embedding.
Definition at line 99 of file FlutterInjector.java.
|
inline |
Definition at line 103 of file FlutterInjector.java.
|
inline |
Returns the io.flutter.embedding.engine.loader.FlutterLoader
instance to use for the Flutter Android engine embedding.
Definition at line 90 of file FlutterInjector.java.
|
inline |
Definition at line 108 of file FlutterInjector.java.
|
inlinestatic |
Retrieve the static instance of the FlutterInjector
to use in your program.
Once you access it, you can no longer change the values injected.
If no override is provided for the injector, reasonable defaults are provided.
Definition at line 54 of file FlutterInjector.java.
|
inlinestatic |
Definition at line 65 of file FlutterInjector.java.
|
inlinestatic |
Use FlutterInjector.Builder
to specify members to be injected via the static
.
FlutterInjector
This can only be called at the beginning of the program before the instance()
is accessed.
Definition at line 37 of file FlutterInjector.java.