mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
28 lines
748 B
C#
28 lines
748 B
C#
namespace Flow.Launcher.Plugin
|
|
{
|
|
/// <summary>
|
|
/// Carries data passed to a plugin when it gets initialized.
|
|
/// </summary>
|
|
public class PluginInitContext
|
|
{
|
|
public PluginInitContext()
|
|
{
|
|
}
|
|
|
|
public PluginInitContext(PluginMetadata currentPluginMetadata, IPublicAPI api)
|
|
{
|
|
CurrentPluginMetadata = currentPluginMetadata;
|
|
API = api;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The metadata of the plugin being initialized.
|
|
/// </summary>
|
|
public PluginMetadata CurrentPluginMetadata { get; internal set; }
|
|
|
|
/// <summary>
|
|
/// Public APIs for plugin invocation
|
|
/// </summary>
|
|
public IPublicAPI API { get; set; }
|
|
}
|
|
}
|