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

22 lines
838 B
C#
Raw Permalink Normal View History

2025-04-01 06:19:59 +00:00
namespace Flow.Launcher.Plugin
2021-07-07 17:47:20 +00:00
{
/// <summary>
2025-04-08 11:33:48 +00:00
/// Inherit this interface if you need to save additional data which is not a setting or cache,
/// please implement this interface.
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}"/>
2025-04-01 06:19:59 +00:00
/// or <see cref="IPublicAPI.SaveSettingJsonStorage{T}"/>.
/// For storing plugin caches, prefer <see cref="IPublicAPI.LoadCacheBinaryStorageAsync{T}"/>
2025-04-01 06:19:59 +00:00
/// or <see cref="IPublicAPI.SaveCacheBinaryStorageAsync{T}(string, string)"/>.
/// Once called, those settings and caches will be automatically saved by Flow.
2023-06-18 19:53:01 +00:00
/// </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.
2023-06-18 19:53:01 +00:00
/// </summary>
2021-07-07 17:47:20 +00:00
void Save();
}
2025-04-01 06:19:59 +00:00
}