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:
36
LanMountainDesktop.AirAppSdk/IAirAppWindow.cs
Normal file
36
LanMountainDesktop.AirAppSdk/IAirAppWindow.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace LanMountainDesktop.AirAppSdk;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for AirApp windows.
|
||||
/// </summary>
|
||||
public interface IAirAppWindow
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the window descriptor (configuration).
|
||||
/// </summary>
|
||||
AirAppWindowDescriptor Descriptor { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Called before the window is opened.
|
||||
/// Use this for async initialization.
|
||||
/// </summary>
|
||||
Task OnWindowOpeningAsync();
|
||||
|
||||
/// <summary>
|
||||
/// Called after the window has been opened.
|
||||
/// </summary>
|
||||
void OnWindowOpened();
|
||||
|
||||
/// <summary>
|
||||
/// Called when the window is closing.
|
||||
/// Set e.Cancel = true to prevent closing.
|
||||
/// </summary>
|
||||
void OnWindowClosing(WindowClosingEventArgs e);
|
||||
|
||||
/// <summary>
|
||||
/// Called after the window has been closed.
|
||||
/// </summary>
|
||||
void OnWindowClosed();
|
||||
}
|
||||
Reference in New Issue
Block a user