mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
feat.airapp sdk
This commit is contained in:
19
LanMountainDesktop.AirAppSdk/IAirAppAppearanceContext.cs
Normal file
19
LanMountainDesktop.AirAppSdk/IAirAppAppearanceContext.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace LanMountainDesktop.AirAppSdk;
|
||||
|
||||
/// <summary>
|
||||
/// Provides appearance and theme context.
|
||||
/// </summary>
|
||||
public interface IAirAppAppearanceContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the current appearance snapshot.
|
||||
/// </summary>
|
||||
AirAppAppearanceSnapshot CurrentSnapshot { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Subscribe to appearance changes.
|
||||
/// </summary>
|
||||
/// <param name="handler">Change handler</param>
|
||||
/// <returns>Subscription token</returns>
|
||||
IDisposable SubscribeToChanges(Action<AirAppAppearanceSnapshot> handler);
|
||||
}
|
||||
Reference in New Issue
Block a user