csharp
public static class PlatformExtensionsConveniences over IPlatform that no implementation should redefine.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Extension methods rather than default interface members, for a reason that only shows up in use: a default interface member is invisible through the concrete type, so headlessPlatform.Has(…) would not compile and every call site would need a cast to IPlatform first. Extensions bind on the static type either way.
Methods (2)
public static bool Has(this IPlatform platform, PlatformCapabilities required)Whether every capability in is present.
public static IWindow? FocusedWindow(this IPlatform platform)The window that has keyboard focus, or if none does.
Used by (7)
- DesktopPlatformTestsVixen.Platform.Desktop.Tests
- DesktopSupplementTestsVixen.Platform.Desktop.Tests
- HeadlessPlatformTestsVixen.Platform.Headless.Tests
- PlatformExtensionsTestsVixen.Platform.Headless.Tests
- PlatformWindowHostVixen.Platform.Ui
- PlatformWindowHostTestsVixen.Platform.Ui.Tests
- VixenApplicationVixen.App.Hosting