Package com.aliucord
        Object PluginManager
- 
                    
                    - All Implemented Interfaces:
 
 public class PluginManagerAliucord's Plugin Manager 
- 
                
                    
                    - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description public final static Map<String, Plugin>pluginspublic final static Map<PathClassLoader, Plugin>classLoaderspublic final static Loggerloggerpublic final static Map<File, Object>failedToLoadpublic final static PluginManagerINSTANCE
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final static UnitloadPlugin(Context context, File file)Loads a plugin final static UnitunloadPlugin(String name)Unloads a plugin final static UnitenablePlugin(String name)Enables a loaded plugin if it isn't already enabled final static UnitdisablePlugin(String name)Disables a loaded plugin if it isn't already disables final static UnittogglePlugin(String name)Toggles a plugin. final static UnitstartPlugin(String name)Starts a plugin final static UnitstopPlugin(String name)Stops a plugin final static UnitremountPlugin(String name)Remounts the plugin (stop -> unload -> load -> start) final static StringgetPluginPrefKey(String name)Gets the preferences key for a plugin. final static BooleanisPluginEnabled(String name)Checks whether a plugin is enabled final static BooleanisPluginEnabled(Plugin plugin)Checks whether a plugin is enabled final static Map<String, Plugin>getVisiblePlugins()Gets only plugins that should be visible to user final static StringgetPluginsInfo()Gets a formatted string with info about installed and enabled plugins final static UnitloadCorePlugins(Context context)final static UnitstartCorePlugins()- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        loadPluginfinal static Unit loadPlugin(Context context, File file) Loads a plugin - Parameters:
- context- Context
- file- Plugin file
 
 - 
                                        unloadPluginfinal static Unit unloadPlugin(String name) Unloads a plugin - Parameters:
- name- Name of the plugin to unload
 
 - 
                                        enablePluginfinal static Unit enablePlugin(String name) Enables a loaded plugin if it isn't already enabled - Parameters:
- name- Name of the plugin to enable
 
 - 
                                        disablePluginfinal static Unit disablePlugin(String name) Disables a loaded plugin if it isn't already disables - Parameters:
- name- Name of the plugin to disable
 
 - 
                                        togglePluginfinal 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
 
 - 
                                        startPluginfinal static Unit startPlugin(String name) Starts a plugin - Parameters:
- name- Name of the plugin to start
 
 - 
                                        stopPluginfinal static Unit stopPlugin(String name) Stops a plugin - Parameters:
- name- Name of the plugin to stop
 
 - 
                                        remountPluginfinal static Unit remountPlugin(String name) Remounts the plugin (stop -> unload -> load -> start) - Parameters:
- name- Name of the plugin to remount
 
 - 
                                        getPluginPrefKeyfinal 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
 
 - 
                                        isPluginEnabledfinal static Boolean isPluginEnabled(String name) Checks whether a plugin is enabled - Parameters:
- name- Name of the plugin
- Returns:
- Whether the plugin is enabled 
 
 - 
                                        isPluginEnabledfinal static Boolean isPluginEnabled(Plugin plugin) Checks whether a plugin is enabled - Parameters:
- plugin- Plugin
- Returns:
- Whether the plugin is enabled 
 
 - 
                                        getVisiblePluginsfinal static Map<String, Plugin> getVisiblePlugins() Gets only plugins that should be visible to user 
 - 
                                        getPluginsInfofinal static String getPluginsInfo() Gets a formatted string with info about installed and enabled plugins 
 - 
                                        loadCorePluginsfinal static Unit loadCorePlugins(Context context) 
 - 
                                        startCorePluginsfinal static Unit startCorePlugins() 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-