# Class PluginSupport

java.lang.Object
com.codename1.plugin.PluginSupport

public class PluginSupport extends Object
Support class for implementing plugins in codename one.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `PluginSupport()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `deregisterPlugin(Plugin plugin)`
  Deregisters a plugin from the Codename One runtime.
  `<T extends PluginEvent>
  T`
  `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.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### PluginSupport

    public PluginSupport()

- ## Method Details

  - ### registerPlugin

    public void registerPlugin(Plugin plugin)

    Registers a plugin with the Codename One runtime.

    ###### Parameters

    - `plugin`: The plugin to register.

    ###### Since

    8.0

  - ### deregisterPlugin

    public void deregisterPlugin(Plugin plugin)

    Deregisters a plugin from the Codename One runtime.

    ###### Parameters

    - `plugin`: The plugin to deregister

    ###### Since

    8.0

  - ### firePluginEvent

    public <T extends PluginEvent> T firePluginEvent(T event)

    Fires a plugin event to give plugins an opportunity to handle it before default behaviour is resumed.

    ###### Parameters

    - `event`: The event to fire.

    - `The`: event class

    ###### Returns

    The event