Class Plugin

  • All Implemented Interfaces:

    
    public abstract class Plugin
    
                        

    The base class that all plugins must extend from for their entrypoint.

    • Constructor Detail

      • Plugin

        Plugin()
    • Method Detail

      • requiresRestart

         Boolean requiresRestart()

        Returns whether the user will be prompted to restart after enabling/disabling. This is toggleable through the @AliucordPlugin annotation. You should not override this method yourself.

      • load

         Unit load(Context context)

        Called when your Plugin is loaded

        Parameters:
        context - An activity Android context.
      • unload

         Unit unload(Context context)

        Called when your Plugin is unloaded

        Parameters:
        context - An activity Android context
      • start

         Unit start(Context context)

        Called when your Plugin is started

        Parameters:
        context - An activity Android context
      • stop

         Unit stop(Context context)

        Called when your Plugin is stopped

        Parameters:
        context - An activity Android context