Skip to content

Commit

Permalink
feat: Correctly indicate support for DesktopAcrylicController and Mic…
Browse files Browse the repository at this point in the history
…aController
  • Loading branch information
MartinZikmund committed Sep 16, 2024
1 parent 7987519 commit c4ee18a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;

namespace Microsoft.UI.Composition.SystemBackdrops;

public partial class DesktopAcrylicController : ISystemBackdropController, IDisposable, ISystemBackdropControllerWithTargets, IClosableNotifier
{
/// <summary>
/// Determines whether the acrylic material is supported on the current operating system.
/// </summary>
/// <remarks>Currently returns false on all targets except for WinUI.</remarks>
/// <returns>True if the acrylic material is supported on the current operating system; otherwise, false.</returns>
public static bool IsSupported() => false;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace Microsoft.UI.Composition.SystemBackdrops;

public partial class MicaController : ISystemBackdropController, IDisposable, ISystemBackdropControllerWithTargets, IClosableNotifier
{
/// <summary>
/// Determines whether the mica material is supported on the current operating system.
/// </summary>
/// <remarks>Currently returns false on all targets except for WinUI.</remarks>
/// <returns>True if the mica material is supported on the current operating system; otherwise, false.</returns>
public static bool IsSupported() => false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#pragma warning disable 114 // new keyword hiding
namespace Microsoft.UI.Composition.SystemBackdrops
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial class DesktopAcrylicController : global::Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropController, global::System.IDisposable, global::Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropControllerWithTargets, global::Microsoft.UI.IClosableNotifier
Expand Down Expand Up @@ -180,7 +180,7 @@ public DesktopAcrylicController()
}
#endif
// Forced skipping of method Microsoft.UI.Composition.SystemBackdrops.DesktopAcrylicController.DesktopAcrylicController()
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "IS_UNIT_TESTS", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")]
public static bool IsSupported()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#pragma warning disable 114 // new keyword hiding
namespace Microsoft.UI.Composition.SystemBackdrops
{
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented]
#endif
public partial class MicaController : global::Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropController, global::System.IDisposable, global::Microsoft.UI.Composition.SystemBackdrops.ISystemBackdropControllerWithTargets, global::Microsoft.UI.IClosableNotifier
Expand Down Expand Up @@ -180,7 +180,7 @@ public MicaController()
}
#endif
// Forced skipping of method Microsoft.UI.Composition.SystemBackdrops.MicaController.MicaController()
#if __ANDROID__ || __IOS__ || IS_UNIT_TESTS || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
#if false
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "IS_UNIT_TESTS", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")]
public static bool IsSupported()
{
Expand Down

0 comments on commit c4ee18a

Please sign in to comment.