Flow.Launcher/Flow.Launcher.Plugin/Interfaces/ISavable.cs

18 lines
595 B
C#
Raw Normal View History

2023-06-18 19:53:01 +00:00
namespace Flow.Launcher.Plugin
2021-07-07 17:47:20 +00:00
{
/// <summary>
2023-06-18 19:53:01 +00:00
/// Inherit this interface if additional data e.g. cache needs to be saved.
2021-07-07 17:47:20 +00:00
/// </summary>
2023-06-18 19:53:01 +00:00
/// <remarks>
/// For storing plugin settings, prefer <see cref="IPublicAPI.LoadSettingJsonStorage{T}"/>
/// or <see cref="IPublicAPI.SaveSettingJsonStorage{T}"/>.
/// Once called, your settings will be automatically saved by Flow.
/// </remarks>
2021-07-07 17:47:20 +00:00
public interface ISavable : IFeatures
{
2023-06-18 19:53:01 +00:00
/// <summary>
/// Save additional plugin data, such as cache.
/// </summary>
2021-07-07 17:47:20 +00:00
void Save();
}
}