Interface IPluginActivator
Service used for activating plugins.
Namespace: OpenMod.API.Plugins
Assembly: OpenMod.API.dll
Syntax
public interface IPluginActivator
Properties
| Improve this Doc View SourceActivatedPlugins
Gets the activated plugins.
Declaration
IReadOnlyCollection<IOpenModPlugin> ActivatedPlugins { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IOpenModPlugin> |
Methods
| Improve this Doc View SourceTryActivatePluginAsync(Assembly)
Tries to activate a plugin.
Declaration
Task<IOpenModPlugin> TryActivatePluginAsync(Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
Assembly | assembly | The plugin assembly. |
Returns
Type | Description |
---|---|
Task<IOpenModPlugin> | The plugin instance if activation was successful; otherwise, null. |