Files
2026-11-24 23:40:08 +03:00

30 lines
438 B
C#

using System.Threading;
namespace VibranceHud.Music;
internal interface INowPlayingSource
{
bool NeedsWorker => false;
NowPlaying? Read()
{
return NowPlaying.FromSpotifyTitle(SpotifyWindowTitle());
}
NowPlaying? Read(CancellationToken cancellation)
{
cancellation.ThrowIfCancellationRequested();
return Read();
}
bool TryCommand(MediaKey key)
{
return false;
}
string? SpotifyWindowTitle()
{
return null;
}
}