Interface PluginRegistry
public interface PluginRegistry
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(FlutterPlugin plugin) void
add
(Set<FlutterPlugin> plugins) get
(Class<? extends FlutterPlugin> pluginClass) Returns the instance of a plugin that is currently attached to theFlutterEngine
associated with thisPluginRegistry
, which matches the givenpluginClass
.boolean
has
(Class<? extends FlutterPlugin> pluginClass) Returns true if a plugin of the given type is currently attached to theFlutterEngine
associated with thisPluginRegistry
.void
remove
(Class<? extends FlutterPlugin> pluginClass) Detaches the plugin of the given type from theFlutterEngine
associated with thisPluginRegistry
.void
remove
(Set<Class<? extends FlutterPlugin>> plugins) Detaches the plugins of the given types from theFlutterEngine
associated with thisPluginRegistry
.void
Detaches all plugins that are currently attached to theFlutterEngine
associated with thisPluginRegistry
.
-
Method Details
-
add
-
add
-
has
Returns true if a plugin of the given type is currently attached to theFlutterEngine
associated with thisPluginRegistry
. -
get
Returns the instance of a plugin that is currently attached to theFlutterEngine
associated with thisPluginRegistry
, which matches the givenpluginClass
.If no matching plugin is found,
null
is returned. -
remove
Detaches the plugin of the given type from theFlutterEngine
associated with thisPluginRegistry
.If no such plugin exists, this method does nothing.
-
remove
Detaches the plugins of the given types from theFlutterEngine
associated with thisPluginRegistry
.If no such plugins exist, this method does nothing.
-
removeAll
void removeAll()Detaches all plugins that are currently attached to theFlutterEngine
associated with thisPluginRegistry
.If no plugins are currently attached, this method does nothing.
-