20 lines
710 B
C#
20 lines
710 B
C#
using EbbesMemeClipboard.Models;
|
|
|
|
namespace EbbesMemeClipboard.Services;
|
|
|
|
public interface IClipboardService
|
|
{
|
|
/// <summary>
|
|
/// Places a local file on the clipboard using multiple formats simultaneously so both
|
|
/// file-paste apps (Discord/Slack/Teams) and bitmap-only apps (Paint) get something
|
|
/// useful, and animated GIFs survive as animations wherever possible.
|
|
/// </summary>
|
|
Task CopyLocalFileAsync(string filePath);
|
|
|
|
/// <summary>
|
|
/// Reads an importable image off the clipboard, preferring the highest-fidelity format
|
|
/// available. Returns null when the clipboard holds no image (e.g. plain text).
|
|
/// </summary>
|
|
ClipboardImportPayload? TryReadImage();
|
|
}
|