Flutter Engine
The Flutter Engine
|
Static Public Member Functions | |
static void | registerWith (@NonNull FlutterEngine engine) |
static void | clearRegisteredEngines () |
static List< FlutterEngine > | getRegisteredEngines () |
Static Public Attributes | |
static RuntimeException | pluginRegistrationException |
A fake of the GeneratedPluginRegistrant
normally built by the tool into Flutter apps.
Used to test engine logic which interacts with the generated class.
Definition at line 16 of file GeneratedPluginRegistrant.java.
|
inlinestatic |
Clears the mutable static state regrettably stored in this class.
registerWith
is a static call with no visible side effects. In order to verify when it's been called we also unfortunately need to store the state statically. This should be called before and after each test run accessing this class to make sure the state is clear both before and after the run.
Definition at line 41 of file GeneratedPluginRegistrant.java.
|
inlinestatic |
Returns a list of all the engines registered so far.
CAUTION: This list is static and must be manually wiped in between test runs. See clearRegisteredEngines()
.
Definition at line 52 of file GeneratedPluginRegistrant.java.
|
inlinestatic |
The one and only method currently generated by the tool.
Normally it registers all plugins in an app with the given engine
. This fake tracks all registered engines instead.
Definition at line 26 of file GeneratedPluginRegistrant.java.
|
static |
Definition at line 18 of file GeneratedPluginRegistrant.java.