2021-01-02 07:52:41 +00:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Flow.Launcher.Plugin
|
|
|
|
|
|
{
|
2021-01-14 04:24:41 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This interface is to indicate and allow plugins to asyncronously reload their
|
|
|
|
|
|
/// in memory data cache or other mediums when user makes a new change
|
|
|
|
|
|
/// that is not immediately captured. For example, for BrowserBookmark and Program
|
|
|
|
|
|
/// plugin does not automatically detect when a user added a new bookmark or program,
|
|
|
|
|
|
/// so this interface's function is exposed to allow user manually do the reloading after
|
|
|
|
|
|
/// those new additions.
|
|
|
|
|
|
///
|
|
|
|
|
|
/// The command that allows user to manual reload is exposed via Plugin.Sys, and
|
|
|
|
|
|
/// it will call the plugins that have implemented this interface.
|
|
|
|
|
|
/// </summary>
|
2021-01-02 07:52:41 +00:00
|
|
|
|
public interface IAsyncReloadable
|
|
|
|
|
|
{
|
|
|
|
|
|
Task ReloadDataAsync();
|
|
|
|
|
|
}
|
2021-01-17 08:10:26 +00:00
|
|
|
|
}
|