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