feat.airapp sdk

This commit is contained in:
lincube
2026-06-08 02:39:44 +08:00
parent 1a6f129e78
commit 7db72fbcd0
36 changed files with 2617 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
namespace LanMountainDesktop.AirAppSdk;
/// <summary>
/// Interface for AirApp desktop component widgets.
/// </summary>
public interface IAirAppWidget
{
/// <summary>
/// Gets or sets the component context.
/// Set by the host when the widget is created.
/// </summary>
IAirAppComponentContext Context { get; set; }
/// <summary>
/// Called when the widget is attached to the desktop.
/// </summary>
void OnAttached();
/// <summary>
/// Called when the widget is detached from the desktop.
/// </summary>
void OnDetached();
/// <summary>
/// Called when the appearance (theme) has changed.
/// </summary>
/// <param name="snapshot">New appearance snapshot</param>
void OnAppearanceChanged(AirAppAppearanceSnapshot snapshot);
}