Flow.Launcher/Flow.Launcher.Plugin/IPlugin.cs

32 lines
958 B
C#
Raw Normal View History

2013-12-19 15:51:20 +00:00
using System.Collections.Generic;
2020-04-21 09:12:17 +00:00
namespace Flow.Launcher.Plugin
{
/// <summary>
/// Synchronous Plugin Model for Flow Launcher
/// <para>
2021-01-17 07:47:19 +00:00
/// If the Querying or Init method requires high IO transmission
/// or performaing CPU intense jobs (performing better with cancellation), please try the IAsyncPlugin interface
/// </para>
/// </summary>
public interface IPlugin
{
/// <summary>
/// Querying when user's search changes
/// <para>
/// This method will be called within a Task.Run,
/// so please avoid synchrously wait for long.
/// </para>
/// </summary>
/// <param name="query">Query to search</param>
/// <returns></returns>
List<Result> Query(Query query);
/// <summary>
/// Initialize plugin
/// </summary>
/// <param name="context"></param>
void Init(PluginInitContext context);
}
2021-01-17 08:10:26 +00:00
}