public class PluginSupport extends Object
Constructor and Description |
---|
PluginSupport() |
Modifier and Type | Method and Description |
---|---|
void |
deregisterPlugin(Plugin plugin)
Deregisters a plugin from the Codename One runtime.
|
<T extends PluginEvent> |
firePluginEvent(T event)
Fires a plugin event to give plugins an opportunity to handle it before default behaviour
is resumed.
|
void |
registerPlugin(Plugin plugin)
Registers a plugin with the Codename One runtime.
|
public void registerPlugin(Plugin plugin)
plugin
- The plugin to register.public void deregisterPlugin(Plugin plugin)
plugin
- The plugin to deregisterpublic <T extends PluginEvent> T firePluginEvent(T event)
T
- The event classevent
- The event to fire.