Flutter Engine
The Flutter Engine
|
Public Member Functions | |
void | add (@NonNull FlutterPlugin plugin) |
void | add (@NonNull Set< FlutterPlugin > plugins) |
boolean | has (@NonNull Class<? extends FlutterPlugin > pluginClass) |
FlutterPlugin | get (@NonNull Class<? extends FlutterPlugin > pluginClass) |
void | remove (@NonNull Class<? extends FlutterPlugin > pluginClass) |
void | remove (@NonNull Set< Class<? extends FlutterPlugin > > plugins) |
void | removeAll () |
Definition at line 11 of file PluginRegistry.java.
void io.flutter.embedding.engine.plugins.PluginRegistry.add | ( | @NonNull FlutterPlugin | plugin | ) |
Attaches the given plugin
to the io.flutter.embedding.engine.FlutterEngine
associated with this PluginRegistry
.
Implemented in io.flutter.embedding.engine.FlutterEngineConnectionRegistry.
void io.flutter.embedding.engine.plugins.PluginRegistry.add | ( | @NonNull Set< FlutterPlugin > | plugins | ) |
Attaches the given plugins
to the io.flutter.embedding.engine.FlutterEngine
associated with this PluginRegistry
.
Implemented in io.flutter.embedding.engine.FlutterEngineConnectionRegistry.
FlutterPlugin io.flutter.embedding.engine.plugins.PluginRegistry.get | ( | @NonNull Class<? extends FlutterPlugin > | pluginClass | ) |
Returns the instance of a plugin that is currently attached to the io.flutter.embedding.engine.FlutterEngine
associated with this PluginRegistry
, which matches the given pluginClass
.
If no matching plugin is found, null
is returned.
Implemented in io.flutter.embedding.engine.FlutterEngineConnectionRegistry.
boolean io.flutter.embedding.engine.plugins.PluginRegistry.has | ( | @NonNull Class<? extends FlutterPlugin > | pluginClass | ) |
Returns true if a plugin of the given type is currently attached to the io.flutter.embedding.engine.FlutterEngine
associated with this PluginRegistry
.
Implemented in io.flutter.embedding.engine.FlutterEngineConnectionRegistry.
void io.flutter.embedding.engine.plugins.PluginRegistry.remove | ( | @NonNull Class<? extends FlutterPlugin > | pluginClass | ) |
Detaches the plugin of the given type from the io.flutter.embedding.engine.FlutterEngine
associated with this PluginRegistry
.
If no such plugin exists, this method does nothing.
Implemented in io.flutter.embedding.engine.FlutterEngineConnectionRegistry.
void io.flutter.embedding.engine.plugins.PluginRegistry.remove | ( | @NonNull Set< Class<? extends FlutterPlugin > > | plugins | ) |
Detaches the plugins of the given types from the io.flutter.embedding.engine.FlutterEngine
associated with this PluginRegistry
.
If no such plugins exist, this method does nothing.
Implemented in io.flutter.embedding.engine.FlutterEngineConnectionRegistry.
void io.flutter.embedding.engine.plugins.PluginRegistry.removeAll | ( | ) |
Detaches all plugins that are currently attached to the io.flutter.embedding.engine.FlutterEngine
associated with this PluginRegistry
.
If no plugins are currently attached, this method does nothing.
Implemented in io.flutter.embedding.engine.FlutterEngineConnectionRegistry.