Package com.aliucord.entities
Class Plugin
-
- All Implemented Interfaces:
public abstract class PluginThe base class that all plugins must extend from for their entrypoint.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPlugin.ManifestPlugin Manifest
public final classPlugin.SettingsTabPlugin SettingsTab
-
Field Summary
Fields Modifier and Type Field Description private final Plugin.Manifestmanifestprivate final AliucordPluginannotationprivate final Stringnamepublic final Loggerloggerpublic Plugin.SettingsTabsettingsTabpublic Resourcesresourcespublic BooleanneedsResourcespublic String__filenamepublic final SettingsAPIsettings
-
Constructor Summary
Constructors Constructor Description Plugin()
-
Method Summary
Modifier and Type Method Description final Plugin.ManifestgetManifest()final AliucordPlugingetAnnotation()final StringgetName()BooleanrequiresRestart()Returns whether the user will be prompted to restart after enabling/disabling. Unitload(Context context)Called when your Plugin is loaded Unitunload(Context context)Called when your Plugin is unloaded Unitstart(Context context)Called when your Plugin is started Unitstop(Context context)Called when your Plugin is stopped -
-
Method Detail
-
getManifest
final Plugin.Manifest getManifest()
-
getAnnotation
final AliucordPlugin getAnnotation()
-
requiresRestart
Boolean requiresRestart()
Returns whether the user will be prompted to restart after enabling/disabling. This is toggleable through the
@AliucordPluginannotation. You should not override this method yourself.- Returns:
-
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
-
-
-
-