Merge pull request #18220 from unoplatform/dev/mazi/controller-is-supported
This commit is contained in:
Коммит
e4d13bca6d
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
|
||||
namespace Microsoft.UI.Composition.SystemBackdrops;
|
||||
|
||||
public partial class DesktopAcrylicController
|
||||
#if HAS_UNO_WINUI
|
||||
: ISystemBackdropController, IDisposable, ISystemBackdropControllerWithTargets, IClosableNotifier
|
||||
#endif
|
||||
{
|
||||
/// <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;
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
|
||||
namespace Microsoft.UI.Composition.SystemBackdrops;
|
||||
|
||||
public partial class MicaController
|
||||
#if HAS_UNO_WINUI
|
||||
: ISystemBackdropController, IDisposable, ISystemBackdropControllerWithTargets, IClosableNotifier
|
||||
#endif
|
||||
{
|
||||
/// <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;
|
||||
}
|
|
@ -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
|
||||
|
@ -180,7 +180,7 @@ namespace Microsoft.UI.Composition.SystemBackdrops
|
|||
}
|
||||
#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()
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
@ -180,7 +180,7 @@ namespace Microsoft.UI.Composition.SystemBackdrops
|
|||
}
|
||||
#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()
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче