public interface IDesktopActivityWindowHost : IDesktopWindowHost, IAsyncDisposable An optional native host that reports whether its window is active, minimized and visible.
Remarks
Runic Desktop finds it by type, like IDesktopWindowStateHost, reads IDesktopActivityWindowHost.Activity when IDesktopActivityWindowHost.ActivityChanged is raised, and passes it to DesktopWindow.Activity and DesktopWindow.ActivityChanged. Report DesktopWindowCapabilities.Activity in IDesktopWindowHost.Capabilities, and raise the event when the window gains or loses the keyboard focus, is minimized or restored, and is shown or hidden.
Properties
Activity
DesktopWindowActivity? Activity { get; } Gets the window's current activity, or null before the window has reported one.
Remarks
Called from any thread; keep it cheap. After the window closed, report it inactive and not visible.
Events
ActivityChanged
event EventHandler? ActivityChanged Occurs after IDesktopActivityWindowHost.Activity has changed. It may be raised on the window's owning thread.