Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
io.flutter.embedding.engine.plugins.PluginRegistry Interface Reference
Inheritance diagram for io.flutter.embedding.engine.plugins.PluginRegistry:
io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry

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 ()
 

Detailed Description

Definition at line 11 of file PluginRegistry.java.

Member Function Documentation

◆ add() [1/2]

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.

◆ add() [2/2]

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.

◆ get()

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.

◆ has()

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.

◆ remove() [1/2]

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.

◆ remove() [2/2]

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.

◆ removeAll()

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.


The documentation for this interface was generated from the following file: