Package com.aliucord

Object PluginManager

  • All Implemented Interfaces:

    
    public class PluginManager
    
                        

    Aliucord's Plugin Manager

    • Constructor Detail

    • Method Detail

      • loadPlugin

         final static Unit loadPlugin(Context context, File file)

        Loads a plugin

        Parameters:
        context - Context
        file - Plugin file
      • unloadPlugin

         final static Unit unloadPlugin(String name)

        Unloads a plugin

        Parameters:
        name - Name of the plugin to unload
      • enablePlugin

         final static Unit enablePlugin(String name)

        Enables a loaded plugin if it isn't already enabled

        Parameters:
        name - Name of the plugin to enable
      • disablePlugin

         final static Unit disablePlugin(String name)

        Disables a loaded plugin if it isn't already disables

        Parameters:
        name - Name of the plugin to disable
      • togglePlugin

         final static Unit togglePlugin(String name)

        Toggles a plugin. If it is enabled, it will be disabled and vice versa.

        Parameters:
        name - Name of the plugin to toggle
      • startPlugin

         final static Unit startPlugin(String name)

        Starts a plugin

        Parameters:
        name - Name of the plugin to start
      • stopPlugin

         final static Unit stopPlugin(String name)

        Stops a plugin

        Parameters:
        name - Name of the plugin to stop
      • remountPlugin

         final static Unit remountPlugin(String name)

        Remounts the plugin (stop -> unload -> load -> start)

        Parameters:
        name - Name of the plugin to remount
      • getPluginPrefKey

         final static String getPluginPrefKey(String name)

        Gets the preferences key for a plugin. This is used as key for plugin settings. Format: AC_PM_{PLUGIN_NAME}

        Parameters:
        name - Name of the plugin
      • isPluginEnabled

         final static Boolean isPluginEnabled(String name)

        Checks whether a plugin is enabled

        Parameters:
        name - Name of the plugin
      • getPluginsInfo

         final static String getPluginsInfo()

        Gets a formatted string with info about installed and enabled plugins